From c1fc7b2cd511ce83566f696c8880d6718e5c6885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 7 Dec 2023 14:21:01 +0100 Subject: refactor: pull 'core', 'internals', 'primordials' from ES module (#21462) This commit refactors how we access "core", "internals" and "primordials" objects coming from `deno_core`, in our internal JavaScript code. Instead of capturing them from "globalThis.__bootstrap" namespace, we import them from recently added "ext:core/mod.js" file. --- ext/web/06_streams.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ext/web/06_streams.js') diff --git a/ext/web/06_streams.js b/ext/web/06_streams.js index 9fc15d1ad..1df375328 100644 --- a/ext/web/06_streams.js +++ b/ext/web/06_streams.js @@ -6,8 +6,7 @@ /// /// -const core = globalThis.Deno.core; -const internals = globalThis.__bootstrap.internals; +import { core, internals, primordials } from "ext:core/mod.js"; const { op_arraybuffer_was_detached, op_transfer_arraybuffer, @@ -29,7 +28,6 @@ import { remove, signalAbort, } from "ext:deno_web/03_abort_signal.js"; -const primordials = globalThis.__bootstrap.primordials; const { ArrayBuffer, ArrayBufferIsView, -- cgit v1.2.3