Skip to content

Commit 08bf015

Browse files
codebyteretargos
authored andcommitted
lib: fix BroadcastChannel initialization location
PR-URL: #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>
1 parent 6fa142d commit 08bf015

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

lib/internal/bootstrap/browser.js

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ defineOperation(globalThis, 'setInterval', timers.setInterval);
4343
defineOperation(globalThis, 'setTimeout', timers.setTimeout);
4444

4545
// Lazy ones.
46+
exposeLazyInterfaces(globalThis, 'internal/worker/io', ['BroadcastChannel']);
4647
exposeLazyInterfaces(globalThis, 'internal/abort_controller', [
4748
'AbortController', 'AbortSignal',
4849
]);

lib/internal/bootstrap/node.js

-6
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ const {
7070
defineOperation,
7171
deprecate,
7272
defineLazyProperties,
73-
exposeLazyInterfaces,
7473
} = require('internal/util');
7574
const {
7675
privateSymbols: {
@@ -214,11 +213,6 @@ defineLazyProperties(
214213
['structuredClone'],
215214
);
216215

217-
exposeLazyInterfaces(
218-
globalThis,
219-
'internal/worker/io',
220-
['BroadcastChannel'],
221-
);
222216
// Set the per-Environment callback that will be called
223217
// when the TrackingTraceStateObserver updates trace state.
224218
// Note that when NODE_USE_V8_PLATFORM is true, the observer is

0 commit comments

Comments
 (0)