mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
lib: fix BroadcastChannel initialization location
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
6fa142d8f8
commit
08bf01593f
2 files changed
+1
-6
No files matched your search
@@ -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',
|
||||
]);
|
||||
|
||||
@@ -70,7 +70,6 @@ const {
|
||||
defineOperation,
|
||||
deprecate,
|
||||
defineLazyProperties,
|
||||
exposeLazyInterfaces,
|
||||
} = require('internal/util');
|
||||
const {
|
||||
privateSymbols: {
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user