We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 280aed1 commit 3fc8c7aCopy full SHA for 3fc8c7a
test/parallel/test-common.js
@@ -29,8 +29,8 @@ const { execFile } = require('child_process');
29
// test for leaked global detection
30
{
31
const p = fixtures.path('leakedGlobal.js');
32
- execFile(process.argv[0], [p], common.mustCall((ex, stdout, stderr) => {
33
- assert.notStrictEqual(ex.code, 0);
+ execFile(process.execPath, [p], common.mustCall((err, stdout, stderr) => {
+ assert.notStrictEqual(err.code, 0);
34
assert.ok(/\bAssertionError\b.*\bUnexpected global\b.*\bgc\b/.test(stderr));
35
}));
36
}
@@ -85,8 +85,8 @@ const failFixtures = [
85
];
86
for (const p of failFixtures) {
87
const [file, expected] = p;
88
- execFile(process.argv[0], [file], common.mustCall((ex, stdout, stderr) => {
89
- assert.ok(ex);
+ execFile(process.execPath, [file], common.mustCall((err, stdout, stderr) => {
+ assert.ok(err);
90
assert.strictEqual(stderr, '');
91
const firstLine = stdout.split('\n').shift();
92
assert.strictEqual(firstLine, expected);
0 commit comments