Skip to content

Commit c1b0497

Browse files
mend
1 parent 3a07030 commit c1b0497

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎test/parallel/test-worker-broadcastchannel.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,10 @@ assert.throws(() => new BroadcastChannel(), {
199199
});
200200
`, { eval: true });
201201

202+
const threadId = worker.threadId;
203+
202204
bc.onworkerexited = common.mustCall((event) => {
203-
assert.strictEqual(event.data.threadId, worker.threadId);
205+
assert.strictEqual(event.data.threadId, threadId);
204206
assert.strictEqual(event.data.exitCode, 42);
205207

206208
bc.close();

0 commit comments

Comments
 (0)