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/fetch/23_request.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/fetch/23_request.js')
| -rw-r--r-- | ext/fetch/23_request.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fetch/23_request.js b/ext/fetch/23_request.js index b78ed07be..512355766 100644 --- a/ext/fetch/23_request.js +++ b/ext/fetch/23_request.js @@ -30,7 +30,7 @@ import { } from "ext:deno_fetch/20_headers.js"; import { HttpClientPrototype } from "ext:deno_fetch/22_http_client.js"; import * as abortSignal from "ext:deno_web/03_abort_signal.js"; -const primordials = globalThis.__bootstrap.primordials; +import { primordials } from "ext:core/mod.js"; const { ArrayPrototypeMap, ArrayPrototypeSlice, |
