Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit08bf015

Browse files
codebyteretargos
authored andcommitted
lib: fix BroadcastChannel initialization location
PR-URL:#46864Reviewed-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 parent6fa142d commit08bf015

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
@@ -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)

[8]ページ先頭

©2009-2025 Movatter.jp