Skip to content

Commit

Permalink
lib: fix BroadcastChannel initialization location
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
codebytere authored and targos committed Mar 14, 2023
1 parent 6fa142d commit 08bf015
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions lib/internal/bootstrap/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]);
Expand Down
6 changes: 0 additions & 6 deletions lib/internal/bootstrap/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ const {
defineOperation,
deprecate,
defineLazyProperties,
exposeLazyInterfaces,
} = require('internal/util');
const {
privateSymbols: {
Expand Down Expand Up @@ -214,11 +213,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
Expand Down

0 comments on commit 08bf015

Please sign in to comment.