Skip to content

Commit da0bc6d

Browse files
authored
lib: fix BroadcastChannel initialization location
PR-URL: #46864 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
1 parent 4a7c3e9 commit da0bc6d

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

lib/internal/bootstrap/browser.js

Lines changed: 1 addition & 0 deletions
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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ const {
7272
defineOperation,
7373
deprecate,
7474
defineLazyProperties,
75-
exposeLazyInterfaces,
7675
} = require('internal/util');
7776
const {
7877
validateInteger,
@@ -226,11 +225,6 @@ defineLazyProperties(
226225
['structuredClone'],
227226
);
228227

229-
exposeLazyInterfaces(
230-
globalThis,
231-
'internal/worker/io',
232-
['BroadcastChannel'],
233-
);
234228
// Set the per-Environment callback that will be called
235229
// when the TrackingTraceStateObserver updates trace state.
236230
// Note that when NODE_USE_V8_PLATFORM is true, the observer is

0 commit comments

Comments
 (0)