Skip to content

Commit 57bbcb8

Browse files
committed
Document in testHelpers.js the tested promises implementations.
1 parent cf1a538 commit 57bbcb8

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

testHelpers.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
var java = require("./");
32
java.options.push("-Djava.awt.headless=true");
43
//java.options.push('-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005');
@@ -9,7 +8,19 @@ java.classpath.push("test8/");
98

109
java.asyncOptions = {
1110
promiseSuffix: 'Promise',
12-
promisify: require('when/node').lift
11+
promisify: require('when/node').lift // when works with all three node versions
12+
13+
// PASSES in all three node versions: 0.8.28, 0.10.35, 0.11.14
14+
// promisify: require('when/node').lift // when works with all three node versions
15+
// promisify: require('promise').denodeify // promise works with all three node versions
16+
// promisify: require('vow-node').promisify // vow-node works with all three node versions
17+
18+
// PASSES in Node 0.10, 0.11. (incompatible with Node 0.8).
19+
// promisify: require('bluebird').promisify // bluebird requires node >=0.10
20+
21+
// FAILS:
22+
// promisify: require('q').denodeify // FAILS: Q triggers assertion failure in node_object_wrap.h, line 61
23+
// promisify: require('p-promise').denodeify // FAILS: P-promise does not implement catch().
1324
};
1425

1526
module.exports.java = java;

0 commit comments

Comments
 (0)