summaryrefslogtreecommitdiff
path: root/ext/node/polyfills
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2024-07-19 12:37:08 +0900
committerGitHub <noreply@github.com>2024-07-19 12:37:08 +0900
commit76b8ecbb6d8c07d29c34fb0b301cc3bf3351e3aa (patch)
tree228b5bde74244c0a844d61257530d1b8e2eef9e4 /ext/node/polyfills
parent3bda8eb4fe059fd79a522c9277a5a872f75dc270 (diff)
fix(ext/node): do not expose `self` global in node (#24637)
closes #23727
Diffstat (limited to 'ext/node/polyfills')
-rw-r--r--ext/node/polyfills/worker_threads.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/node/polyfills/worker_threads.ts b/ext/node/polyfills/worker_threads.ts
index 8bbd0e929..b51049af5 100644
--- a/ext/node/polyfills/worker_threads.ts
+++ b/ext/node/polyfills/worker_threads.ts
@@ -356,7 +356,7 @@ internals.__initWorkerThreads = (
(ev: any) => any
>();
- parentPort = self as ParentPort;
+ parentPort = globalThis as ParentPort;
threadId = workerId;
if (maybeWorkerMetadata) {
const { 0: metadata, 1: _ } = maybeWorkerMetadata;