Skip to content

Commit 161ddbd

Browse files
committed
worker: add postMessageToThread
nodejs/node#53682
1 parent c938545 commit 161ddbd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

patches/node/chore_remove_--no-harmony-atomics_related_code.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ diff --git a/lib/internal/main/worker_thread.js b/lib/internal/main/worker_threa
2727
index cfd1d1b6f18e2943e155cf021b566a4673f71ab0..8d1a184ad1936c0d8493d6c54c32bebcf0021d8b 100644
2828
--- a/lib/internal/main/worker_thread.js
2929
+++ b/lib/internal/main/worker_thread.js
30-
@@ -113,7 +113,7 @@ port.on('message', (message) => {
31-
30+
@@ -117,7 +117,7 @@ port.on('message', (message) => {
3231
require('internal/worker').assignEnvironmentData(environmentData);
32+
setupMainThreadPort(mainThreadPort);
3333

3434
- if (SharedArrayBuffer !== undefined && Atomics !== undefined) {
3535
+ if (SharedArrayBuffer !== undefined) {

0 commit comments

Comments
 (0)