Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 08bf015

Browse filesBrowse 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
Copy full SHA for 08bf015

File tree

Expand file treeCollapse file tree

2 files changed

+1
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+1
-6
lines changed
Open diff view settings
Collapse file

‎lib/internal/bootstrap/browser.js‎

Copy file name to clipboardExpand all lines: lib/internal/bootstrap/browser.js
+1Lines 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
]);
Collapse file

‎lib/internal/bootstrap/node.js‎

Copy file name to clipboardExpand all lines: lib/internal/bootstrap/node.js
-6Lines changed: 0 additions & 6 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.