Skip to content

Commit 15022c6

Browse files
committed
lib: fix BroadcastChannel initialization location
PR-URL: nodejs/node#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 f1c9eaf commit 15022c6

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

graal-nodejs/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
]);

graal-nodejs/lib/internal/bootstrap/node.js

Lines changed: 0 additions & 6 deletions
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: {
@@ -253,11 +252,6 @@ defineLazyProperties(
253252
['structuredClone'],
254253
);
255254

256-
exposeLazyInterfaces(
257-
globalThis,
258-
'internal/worker/io',
259-
['BroadcastChannel'],
260-
);
261255
// Set the per-Environment callback that will be called
262256
// when the TrackingTraceStateObserver updates trace state.
263257
// Note that when NODE_USE_V8_PLATFORM is true, the observer is

0 commit comments

Comments
 (0)