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 /ext/broadcast_channel/01_broadcast_channel.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 'ext/broadcast_channel/01_broadcast_channel.js')
-rw-r--r-- | ext/broadcast_channel/01_broadcast_channel.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/broadcast_channel/01_broadcast_channel.js b/ext/broadcast_channel/01_broadcast_channel.js index a482a2dce..6ee857474 100644 --- a/ext/broadcast_channel/01_broadcast_channel.js +++ b/ext/broadcast_channel/01_broadcast_channel.js @@ -2,7 +2,7 @@ /// <reference path="../../core/internal.d.ts" /> -const core = globalThis.Deno.core; +import { core, primordials } from "ext:core/mod.js"; const ops = core.ops; import * as webidl from "ext:deno_webidl/00_webidl.js"; import { createFilteredInspectProxy } from "ext:deno_console/01_console.js"; @@ -13,7 +13,6 @@ import { setTarget, } from "ext:deno_web/02_event.js"; import DOMException from "ext:deno_web/01_dom_exception.js"; -const primordials = globalThis.__bootstrap.primordials; const { ArrayPrototypeIndexOf, ArrayPrototypePush, |