diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-12-07 14:21:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-07 14:21:01 +0100 |
| commit | c1fc7b2cd511ce83566f696c8880d6718e5c6885 (patch) | |
| tree | 6430faa4996b1022c0e1ae1e78cb3b9e196029eb /runtime/js/99_main.js | |
| parent | 5dd9b26155ceed514364f92fe4fdacb6b8cc8182 (diff) | |
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.
Diffstat (limited to 'runtime/js/99_main.js')
| -rw-r--r-- | runtime/js/99_main.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 050cd3bf8..22352bf29 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -3,10 +3,8 @@ // Remove Intl.v8BreakIterator because it is a non-standard API. delete Intl.v8BreakIterator; -const core = globalThis.Deno.core; +import { core, internals, primordials } from "ext:core/mod.js"; const ops = core.ops; -const internals = globalThis.__bootstrap.internals; -const primordials = globalThis.__bootstrap.primordials; const { ArrayPrototypeFilter, ArrayPrototypeIncludes, |
