Merge branch 'node4' of github.com:kentonv/node-capnp into node4
This commit is contained in:
commit
1609fa1155
3 files changed
+6
-2
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "capnp",
|
||||
"version": "0.1.11",
|
||||
"version": "0.2.0",
|
||||
"description": "A wrapper for the C++ Cap'n Proto library",
|
||||
"keywords": [ "capnproto", "serialization" ],
|
||||
"homepage": "http://capnproto.org",
|
||||
|
||||
@@ -92,6 +92,8 @@ console.log("serialization: pass");
|
||||
// =======================================================================================
|
||||
// Test matchPowerboxQuery
|
||||
|
||||
if (capnp.matchPowerboxQuery) {
|
||||
|
||||
var tag1 = capnp.serialize(test.TestAllTypes, {int32Field: 123});
|
||||
var tag2 = capnp.serialize(test.TestAllTypes, {int32Field: 321});
|
||||
var tag3 = capnp.serialize(test.TestAllTypes, {});
|
||||
@@ -187,6 +189,8 @@ assert(capnp.matchPowerboxQuery(tagStrList4, tagStrList1));
|
||||
|
||||
console.log("matchPowerboxQuery: pass");
|
||||
|
||||
}
|
||||
|
||||
// =======================================================================================
|
||||
// Test RPC, if possible.
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ try {
|
||||
} catch (ex) {
|
||||
// Give up.
|
||||
throw new Error(
|
||||
"`" + modPath+ ".node` is missing. Try reinstalling `node-capnp`?");
|
||||
"`capnp.node` is missing. Try reinstalling `node-capnp`?");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user