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/node/polyfills/_process/process.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/node/polyfills/_process') diff --git a/ext/node/polyfills/_process/process.ts b/ext/node/polyfills/_process/process.ts index 062effe07..b153c8e19 100644 --- a/ext/node/polyfills/_process/process.ts +++ b/ext/node/polyfills/_process/process.ts @@ -7,7 +7,7 @@ // The following are all the process APIs that don't depend on the stream module // They have to be split this way to prevent a circular dependency -const core = globalThis.Deno.core; +import { core } from "ext:core/mod.js"; import { nextTick as _nextTick } from "ext:deno_node/_next_tick.ts"; import { _exiting } from "ext:deno_node/_process/exiting.ts"; import * as fs from "ext:deno_fs/30_fs.js"; -- cgit v1.2.3