Skip to content

Commit 2ba3c20

Browse files
committed
Merge pull request #28 from anba/npm_test
Set 'displayErrors: false' when creating new context to support node>0.10
2 parents 626a715 + dded264 commit 2ba3c20

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/runners/node-ip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ NodeRunner.prototype.execute = function(test, cb) {
2727
process: process
2828
}
2929
try {
30-
vm.runInNewContext(contents, context);
30+
vm.runInNewContext(contents, context, {displayErrors: false});
3131
} catch(e) {
3232
error = e;
3333
}

lib/runners/nodehost.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ process.stdin.on('data', function(test) {
3030
}
3131

3232
try {
33-
vm.runInNewContext(test, context);
33+
vm.runInNewContext(test, context, {displayErrors: false});
3434
} catch(e) {
3535
context.$DONE(e);
3636
}

test/nodeConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ var t262 = require('../');
22
t262.useConfig({
33
batchConfig: {
44
createEnv: 'require("vm").createContext()',
5-
runBatched: 'env.process = process;env.console=console;require("vm").runInContext(test, env);'
5+
runBatched: 'env.process = process;env.console=console;require("vm").runInContext(test, env, {displayErrors: false});'
66
}
77
})

0 commit comments

Comments
 (0)