8000
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 e9416d4 commit 702d67fCopy full SHA for 702d67f
test/parallel/test-vm-run-in-new-context.js
@@ -26,8 +26,8 @@ const common = require('../common');
26
const assert = require('assert');
27
const vm = require('vm');
28
29
-assert.strictEqual(typeof global.gc, 'function',
30
- 'Run this test with --expose-gc');
+if (typeof global.gc !== 'function')
+ assert.fail('Run this test with --expose-gc');
31
32
common.globalCheck = false;
33