diff --git a/lib/internal/bootstrap/browser.js b/lib/internal/bootstrap/browser.js index bffdadbe84ea44..29932e9b5d8ef0 100644 --- a/lib/internal/bootstrap/browser.js +++ b/lib/internal/bootstrap/browser.js @@ -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', ]); diff --git a/lib/internal/bootstrap/node.js b/lib/internal/bootstrap/node.js index 161f75284d33dc..f73f10fc3c3692 100644 --- a/lib/internal/bootstrap/node.js +++ b/lib/internal/bootstrap/node.js @@ -71,7 +71,6 @@ const { defineOperation, deprecate, defineLazyProperties, - exposeLazyInterfaces, } = require('internal/util'); const { privateSymbols: { @@ -247,11 +246,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