Skip to content

Commit

Permalink
fixup! worker: allow copied NODE_OPTIONS in the env setting
Browse files Browse the repository at this point in the history
  • Loading branch information
joyeecheung committed Jul 4, 2024
1 parent 780ade2 commit 396ccd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/fixtures/spawn-worker-with-copied-env.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

// This test is meant to be spawned with NODE_OPTIONS=--title=foo
const assert = require('assert');
assert.strictEqual(process.title, 'foo');
if (process.platform !== 'sunos') { // --title is unsupported on SmartOS.
assert.strictEqual(process.title, 'foo');
}

// Spawns a worker that may copy NODE_OPTIONS if it's set by the parent.
const { Worker } = require('worker_threads');
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-worker-node-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ spawnSyncAndAssert(
}
},
{
stderr: /spawn-worker-with-trace-exit.js:17/
stderr: /spawn-worker-with-trace-exit\.js:17/
}
);

0 comments on commit 396ccd9

Please sign in to comment.