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: fix crash when .unref() is called during exit
  • Loading branch information
addaleax committed May 14, 2020
commit e010141eb7a1f86f898f355e8986edcbd2ca319e
3 changes: 3 additions & 0 deletions test/parallel/test-worker-unref-from-message-during-exit.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
const common = require('../common');
const { Worker } = require('worker_threads');

Comment thread
addaleax marked this conversation as resolved.
// This used to crash because the `.unref()` was unexpected while the Worker
// was exiting.

const w = new Worker(`
require('worker_threads').parentPort.postMessage({});
`, { eval: true });
Expand Down