Skip to content

Commit 04dad9c

Browse files
codebyteretargos
authored andcommitted
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 15280fb commit 04dad9c

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
@@ -71,7 +71,6 @@ const {
7171
defineOperation,
7272
deprecate,
7373
defineLazyProperties,
74-
exposeLazyInterfaces,
7574
} = require('internal/util');
7675
const {
7776
privateSymbols: {
@@ -247,11 +246,6 @@ defineLazyProperties(
247246
['structuredClone'],
248247
);
249248

250-
exposeLazyInterfaces(
251-
globalThis,
252-
'internal/worker/io',
253-
['BroadcastChannel'],
254-
);
255249
// Set the per-Environment callback that will be called
256250
// when the TrackingTraceStateObserver updates trace state.
257251
// Note that when NODE_USE_V8_PLATFORM is true, the observer is

0 commit comments

Comments
 (0)