Skip to content

Commit f8024fb

Browse files
committed
test: change the regluar express
update the test/parallel/test-vm-create-context-arg.js in line 27 to change the regluar expression `TypeError` with the `/^TypeError: sandbox must be an object$/`
1 parent 5d3609d commit f8024fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-vm-create-context-arg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const vm = require('vm');
2626

2727
assert.throws(function() {
2828
vm.createContext('string is not supported');
29-
}, TypeError);
29+
}, /^TypeError: sandbox must be an object$/);
3030

3131
assert.doesNotThrow(function() {
3232
vm.createContext({ a: 1 });

0 commit comments

Comments
 (0)