We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d916da commit a3f327fCopy full SHA for a3f327f
test/parallel/test-vm-run-in-new-context.js
@@ -17,7 +17,7 @@ assert.strictEqual('passed', result);
17
console.error('thrown error');
18
assert.throws(function() {
19
vm.runInNewContext('throw new Error(\'test\');');
20
-});
+}, /^Error: test$/);
21
22
global.hello = 5;
23
vm.runInNewContext('hello = 2');
0 commit comments