Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: changed throw for runInNewContext to regex
  • Loading branch information
Muhsin Abdul-Musawwir
Muhsin Abdul-Musawwir committed Apr 22, 2017
commit 1c7c87f59c5519f9ac510305cf82629515083615
2 changes: 1 addition & 1 deletion test/parallel/test-vm-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ assert.strictEqual('lala', context.thing);
// Issue GH-227:
assert.throws(function() {
vm.runInNewContext('', null, 'some.js');
}, TypeError);
}, /^TypeError: sandbox must be an object$/);

// Issue GH-1140:
console.error('test runInContext signature');
Expand Down