mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00: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:
@@ -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',
|
||||
]);
|
||||
|
||||
@@ -72,7 +72,6 @@ const {
|
||||
defineOperation,
|
||||
deprecate,
|
||||
defineLazyProperties,
|
||||
exposeLazyInterfaces,
|
||||
} = require('internal/util');
|
||||
const {
|
||||
validateInteger,
|
||||
@@ -226,11 +225,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