Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! worker: reset Isolate stack limit after entering Locker
  • Loading branch information
addaleax committed Feb 4, 2020
commit 0d30c302b61b7d9ae0ebffdc3799fac59ccf46f8
5 changes: 4 additions & 1 deletion test/parallel/test-worker-stack-overflow-stack-size.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,8 @@ async function runWorker() {
const w1stack = await runWorker();
v8.setFlagsFromString('--stack-size=1000');
const w2stack = await runWorker();
assert.strictEqual(w1stack, w2stack);
// Make sure the two stack sizes are within 10 % of each other, i.e. not
// affected by the different `--stack-size` settings.
assert(Math.max(w1stack, w2stack) / Math.min(w1stack, w2stack) < 1.1,
`w1stack = ${w1stack}, w2stack ${w2stack} are too far apart`);
})().then(common.mustCall());