lib: fix BroadcastChannel initialization location

PR-URL: https://github.com/nodejs/node/pull/46864
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This commit is contained in:
Shelley Vohr authored and GitHub committed 2023-03-01 12:25:20 +00:00
1 parent 4a7c3e9c50
commit da0bc6db98
2 files changed
+1 -6

No files matched your search

+1
View File
@@ -43,6 +43,7 @@ defineOperation(globalThis, 'setInterval', timers.setInterval);
defineOperation(globalThis, 'setTimeout', timers.setTimeout);
// Lazy ones.
exposeLazyInterfaces(globalThis, 'internal/worker/io', ['BroadcastChannel']);
exposeLazyInterfaces(globalThis, 'internal/abort_controller', [
'AbortController', 'AbortSignal',
]);
-6
View File
@@ -72,7 +72,6 @@ const {
defineOperation,
deprecate,
defineLazyProperties,
exposeLazyInterfaces,
} = require('internal/util');
const {
validateInteger,
@@ -226,11 +225,6 @@ defineLazyProperties(
['structuredClone'],
);
exposeLazyInterfaces(
globalThis,
'internal/worker/io',
['BroadcastChannel'],
);
// Set the per-Environment callback that will be called
// when the TrackingTraceStateObserver updates trace state.
// Note that when NODE_USE_V8_PLATFORM is true, the observer is