We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53c88fa commit bc05436Copy full SHA for bc05436
test/parallel/test-vm-is-context.js
@@ -26,7 +26,7 @@ const vm = require('vm');
26
27
assert.throws(function() {
28
vm.isContext('string is not supported');
29
-}, TypeError);
+}, /^TypeError: sandbox must be an object$/);
30
31
assert.strictEqual(vm.isContext({}), false);
32
assert.strictEqual(vm.isContext([]), false);
0 commit comments