Skip to content

Commit 2c99cd5

Browse files
committed
fixup! src: implement --max-worker-threads warning limit
1 parent 4c94cd1 commit 2c99cd5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

doc/api/cli.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,6 +1159,7 @@ Node.js options that are allowed are:
11591159
* `--inspect-publish-uid`
11601160
* `--inspect`
11611161
* `--max-http-header-size`
1162+
* `--max-worker-threads`
11621163
* `--napi-modules`
11631164
* `--no-deprecation`
11641165
* `--no-force-async-hooks-checks`

test/parallel/test-worker-max-count-nested.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,5 @@ if (process.argv[2] === 'child') {
3434
process.execPath,
3535
['--max-worker-threads=1', __filename, 'child'],
3636
{ stdio: 'inherit' });
37-
child.on('close', common.mustCall((code) => {
38-
assert.strictEqual(code, 0);
39-
}));
37+
child.on('close', common.mustCall((code) => assert(!code)));
4038
}

0 commit comments

Comments
 (0)