Skip to content

Commit

Permalink
Add setTimeout to eshostContext. Fixes tc39gh-37
Browse files Browse the repository at this point in the history
Originally reported at tc39/test262-harness#85
  • Loading branch information
rwaldron committed Aug 24, 2017
1 parent c46e378 commit 9976c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/agents/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class NodeAgent extends ConsoleAgent {
code = `
Function("return this;")().require = require;
var vm = require("vm");
var eshostContext = vm.createContext({ require, console });
var eshostContext = vm.createContext({ setTimeout, require, console });
vm.runInESHostContext = function(code, options) {
return vm.runInContext(code, eshostContext, options);
};
Expand Down

0 comments on commit 9976c2a

Please sign in to comment.