mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
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.
This commit is contained in:
parent
5dd9b26155
commit
c1fc7b2cd5
71 changed files with 72 additions and 126 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
/// <reference path="../../core/internal.d.ts" />
|
/// <reference path="../../core/internal.d.ts" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||||
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
||||||
|
@ -13,7 +13,6 @@ import {
|
||||||
setTarget,
|
setTarget,
|
||||||
} from "ext:deno_web/02_event.js";
|
} from "ext:deno_web/02_event.js";
|
||||||
import DOMException from "ext:deno_web/01_dom_exception.js";
|
import DOMException from "ext:deno_web/01_dom_exception.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayPrototypeIndexOf,
|
ArrayPrototypeIndexOf,
|
||||||
ArrayPrototypePush,
|
ArrayPrototypePush,
|
||||||
|
|
3
ext/cache/01_cache.js
vendored
3
ext/cache/01_cache.js
vendored
|
@ -1,7 +1,6 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayPrototypePush,
|
ArrayPrototypePush,
|
||||||
ObjectPrototypeIsPrototypeOf,
|
ObjectPrototypeIsPrototypeOf,
|
||||||
|
|
|
@ -2,9 +2,7 @@
|
||||||
|
|
||||||
/// <reference path="../../core/internal.d.ts" />
|
/// <reference path="../../core/internal.d.ts" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, internals, primordials } from "ext:core/mod.js";
|
||||||
const internals = globalThis.__bootstrap.internals;
|
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
AggregateErrorPrototype,
|
AggregateErrorPrototype,
|
||||||
Array,
|
Array,
|
||||||
|
|
|
@ -6,9 +6,8 @@
|
||||||
/// <reference path="../webidl/internal.d.ts" />
|
/// <reference path="../webidl/internal.d.ts" />
|
||||||
/// <reference path="../web/lib.deno_web.d.ts" />
|
/// <reference path="../web/lib.deno_web.d.ts" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||||
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
||||||
import DOMException from "ext:deno_web/01_dom_exception.js";
|
import DOMException from "ext:deno_web/01_dom_exception.js";
|
||||||
|
|
|
@ -19,7 +19,7 @@ import {
|
||||||
HTTP_TOKEN_CODE_POINT_RE,
|
HTTP_TOKEN_CODE_POINT_RE,
|
||||||
httpTrim,
|
httpTrim,
|
||||||
} from "ext:deno_web/00_infra.js";
|
} from "ext:deno_web/00_infra.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
import { primordials } from "ext:core/mod.js";
|
||||||
const {
|
const {
|
||||||
ArrayIsArray,
|
ArrayIsArray,
|
||||||
ArrayPrototypePush,
|
ArrayPrototypePush,
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
/// <reference path="./lib.deno_fetch.d.ts" />
|
/// <reference path="./lib.deno_fetch.d.ts" />
|
||||||
/// <reference lib="esnext" />
|
/// <reference lib="esnext" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||||
import {
|
import {
|
||||||
Blob,
|
Blob,
|
||||||
|
@ -17,7 +17,6 @@ import {
|
||||||
File,
|
File,
|
||||||
FilePrototype,
|
FilePrototype,
|
||||||
} from "ext:deno_web/09_file.js";
|
} from "ext:deno_web/09_file.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayPrototypePush,
|
ArrayPrototypePush,
|
||||||
ArrayPrototypeSlice,
|
ArrayPrototypeSlice,
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
/// <reference path="./lib.deno_fetch.d.ts" />
|
/// <reference path="./lib.deno_fetch.d.ts" />
|
||||||
/// <reference lib="esnext" />
|
/// <reference lib="esnext" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||||
import {
|
import {
|
||||||
parseUrlEncoded,
|
parseUrlEncoded,
|
||||||
|
@ -36,7 +36,6 @@ import {
|
||||||
readableStreamTee,
|
readableStreamTee,
|
||||||
readableStreamThrowIfErrored,
|
readableStreamThrowIfErrored,
|
||||||
} from "ext:deno_web/06_streams.js";
|
} from "ext:deno_web/06_streams.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayBufferPrototype,
|
ArrayBufferPrototype,
|
||||||
ArrayBufferIsView,
|
ArrayBufferIsView,
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
/// <reference path="./lib.deno_fetch.d.ts" />
|
/// <reference path="./lib.deno_fetch.d.ts" />
|
||||||
/// <reference lib="esnext" />
|
/// <reference lib="esnext" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
import { SymbolDispose } from "ext:deno_web/00_infra.js";
|
import { SymbolDispose } from "ext:deno_web/00_infra.js";
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ import {
|
||||||
} from "ext:deno_fetch/20_headers.js";
|
} from "ext:deno_fetch/20_headers.js";
|
||||||
import { HttpClientPrototype } from "ext:deno_fetch/22_http_client.js";
|
import { HttpClientPrototype } from "ext:deno_fetch/22_http_client.js";
|
||||||
import * as abortSignal from "ext:deno_web/03_abort_signal.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 {
|
const {
|
||||||
ArrayPrototypeMap,
|
ArrayPrototypeMap,
|
||||||
ArrayPrototypeSlice,
|
ArrayPrototypeSlice,
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
/// <reference path="./lib.deno_fetch.d.ts" />
|
/// <reference path="./lib.deno_fetch.d.ts" />
|
||||||
/// <reference lib="esnext" />
|
/// <reference lib="esnext" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||||
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
||||||
import {
|
import {
|
||||||
|
@ -30,7 +30,6 @@ import {
|
||||||
headerListFromHeaders,
|
headerListFromHeaders,
|
||||||
headersFromHeaderList,
|
headersFromHeaderList,
|
||||||
} from "ext:deno_fetch/20_headers.js";
|
} from "ext:deno_fetch/20_headers.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayPrototypeMap,
|
ArrayPrototypeMap,
|
||||||
ArrayPrototypePush,
|
ArrayPrototypePush,
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
/// <reference path="./lib.deno_fetch.d.ts" />
|
/// <reference path="./lib.deno_fetch.d.ts" />
|
||||||
/// <reference lib="esnext" />
|
/// <reference lib="esnext" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||||
import { byteLowerCase } from "ext:deno_web/00_infra.js";
|
import { byteLowerCase } from "ext:deno_web/00_infra.js";
|
||||||
|
@ -32,7 +32,6 @@ import {
|
||||||
toInnerResponse,
|
toInnerResponse,
|
||||||
} from "ext:deno_fetch/23_response.js";
|
} from "ext:deno_fetch/23_response.js";
|
||||||
import * as abortSignal from "ext:deno_web/03_abort_signal.js";
|
import * as abortSignal from "ext:deno_web/03_abort_signal.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayPrototypePush,
|
ArrayPrototypePush,
|
||||||
ArrayPrototypeSplice,
|
ArrayPrototypeSplice,
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
/// <reference path="../../core/internal.d.ts" />
|
/// <reference path="../../core/internal.d.ts" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
|
|
||||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||||
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
||||||
|
@ -19,7 +19,6 @@ import { getLocationHref } from "ext:deno_web/12_location.js";
|
||||||
import { newInnerRequest } from "ext:deno_fetch/23_request.js";
|
import { newInnerRequest } from "ext:deno_fetch/23_request.js";
|
||||||
import { mainFetch } from "ext:deno_fetch/26_fetch.js";
|
import { mainFetch } from "ext:deno_fetch/26_fetch.js";
|
||||||
|
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayPrototypeFind,
|
ArrayPrototypeFind,
|
||||||
Number,
|
Number,
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayBufferIsView,
|
ArrayBufferIsView,
|
||||||
ArrayBufferPrototype,
|
ArrayBufferPrototype,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
const {
|
const {
|
||||||
op_fs_chmod_async,
|
op_fs_chmod_async,
|
||||||
|
@ -9,7 +9,6 @@ const {
|
||||||
op_fs_link_async,
|
op_fs_link_async,
|
||||||
op_fs_flock_async,
|
op_fs_flock_async,
|
||||||
} = Deno.core.ensureFastOps();
|
} = Deno.core.ensureFastOps();
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayPrototypeFilter,
|
ArrayPrototypeFilter,
|
||||||
Date,
|
Date,
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, internals, primordials } from "ext:core/mod.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const internals = globalThis.__bootstrap.internals;
|
|
||||||
|
|
||||||
const { BadResourcePrototype, InterruptedPrototype } = core;
|
const { BadResourcePrototype, InterruptedPrototype } = core;
|
||||||
import { InnerBody } from "ext:deno_fetch/22_body.js";
|
import { InnerBody } from "ext:deno_fetch/22_body.js";
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, internals, primordials } from "ext:core/mod.js";
|
||||||
const internals = globalThis.__bootstrap.internals;
|
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const { BadResourcePrototype, InterruptedPrototype, ops } = core;
|
const { BadResourcePrototype, InterruptedPrototype, ops } = core;
|
||||||
const { op_http_write } = Deno.core.ensureFastOps();
|
const { op_http_write } = Deno.core.ensureFastOps();
|
||||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||||
|
|
|
@ -4,9 +4,8 @@
|
||||||
// Documentation liberally lifted from them too.
|
// Documentation liberally lifted from them too.
|
||||||
// Thank you! We love Go! <3
|
// Thank you! We love Go! <3
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
import {
|
import {
|
||||||
readableStreamForRid,
|
readableStreamForRid,
|
||||||
writableStreamForRid,
|
writableStreamForRid,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const { BadResourcePrototype, InterruptedPrototype, ops } = core;
|
const { BadResourcePrototype, InterruptedPrototype, ops } = core;
|
||||||
import {
|
import {
|
||||||
readableStreamForRidUnrefable,
|
readableStreamForRidUnrefable,
|
||||||
|
@ -11,7 +11,6 @@ import {
|
||||||
import * as abortSignal from "ext:deno_web/03_abort_signal.js";
|
import * as abortSignal from "ext:deno_web/03_abort_signal.js";
|
||||||
import { SymbolDispose } from "ext:deno_web/00_infra.js";
|
import { SymbolDispose } from "ext:deno_web/00_infra.js";
|
||||||
|
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
Error,
|
Error,
|
||||||
Number,
|
Number,
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
import { Conn, Listener } from "ext:deno_net/01_net.js";
|
import { Conn, Listener } from "ext:deno_net/01_net.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const { Number, TypeError } = primordials;
|
const { Number, TypeError } = primordials;
|
||||||
|
|
||||||
function opStartTls(args) {
|
function opStartTls(args) {
|
||||||
|
|
|
@ -2,10 +2,8 @@
|
||||||
|
|
||||||
// deno-lint-ignore-file
|
// deno-lint-ignore-file
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, internals, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
const internals = globalThis.__bootstrap.internals;
|
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayIsArray,
|
ArrayIsArray,
|
||||||
ArrayPrototypeIncludes,
|
ArrayPrototypeIncludes,
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
// The following are all the process APIs that don't depend on the stream module
|
// 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
|
// 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 { nextTick as _nextTick } from "ext:deno_node/_next_tick.ts";
|
||||||
import { _exiting } from "ext:deno_node/_process/exiting.ts";
|
import { _exiting } from "ext:deno_node/_process/exiting.ts";
|
||||||
import * as fs from "ext:deno_fs/30_fs.js";
|
import * as fs from "ext:deno_fs/30_fs.js";
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
// TODO(petamoriken): enable prefer-primordials for node polyfills
|
// TODO(petamoriken): enable prefer-primordials for node polyfills
|
||||||
// deno-lint-ignore-file prefer-primordials
|
// deno-lint-ignore-file prefer-primordials
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core } from "ext:core/mod.js";
|
||||||
import { notImplemented, warnNotImplemented } from "ext:deno_node/_utils.ts";
|
import { notImplemented, warnNotImplemented } from "ext:deno_node/_utils.ts";
|
||||||
import { EventEmitter } from "node:events";
|
import { EventEmitter } from "node:events";
|
||||||
import { Buffer } from "node:buffer";
|
import { Buffer } from "node:buffer";
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
// TODO(petamoriken): enable prefer-primordials for node polyfills
|
// TODO(petamoriken): enable prefer-primordials for node polyfills
|
||||||
// deno-lint-ignore-file prefer-primordials
|
// deno-lint-ignore-file prefer-primordials
|
||||||
|
|
||||||
const ops = globalThis.Deno.core.ops;
|
import { core } from "ext:core/mod.js";
|
||||||
|
const ops = core.ops;
|
||||||
|
|
||||||
export default function randomInt(max: number): number;
|
export default function randomInt(max: number): number;
|
||||||
export default function randomInt(min: number, max: number): number;
|
export default function randomInt(min: number, max: number): number;
|
||||||
|
|
|
@ -32,7 +32,7 @@ export {
|
||||||
} from "ext:deno_node/internal/crypto/_randomFill.mjs";
|
} from "ext:deno_node/internal/crypto/_randomFill.mjs";
|
||||||
export { default as randomInt } from "ext:deno_node/internal/crypto/_randomInt.ts";
|
export { default as randomInt } from "ext:deno_node/internal/crypto/_randomInt.ts";
|
||||||
|
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
import { primordials } from "ext:core/mod.js";
|
||||||
const { StringPrototypePadStart, StringPrototypeToString } = primordials;
|
const { StringPrototypePadStart, StringPrototypeToString } = primordials;
|
||||||
|
|
||||||
const { core } = globalThis.__bootstrap;
|
const { core } = globalThis.__bootstrap;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
import { arch, versions } from "ext:deno_node/_process/process.ts";
|
import { arch, versions } from "ext:deno_node/_process/process.ts";
|
||||||
import { cpus, hostname, networkInterfaces } from "node:os";
|
import { cpus, hostname, networkInterfaces } from "node:os";
|
||||||
|
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
import { primordials } from "ext:core/mod.js";
|
||||||
const {
|
const {
|
||||||
Error,
|
Error,
|
||||||
StringPrototypeToUpperCase,
|
StringPrototypeToUpperCase,
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
// TODO(petamoriken): enable prefer-primordials for node polyfills
|
// TODO(petamoriken): enable prefer-primordials for node polyfills
|
||||||
// deno-lint-ignore-file prefer-primordials
|
// deno-lint-ignore-file prefer-primordials
|
||||||
|
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
import { primordials } from "ext:core/mod.js";
|
||||||
const {
|
const {
|
||||||
MapPrototypeDelete,
|
MapPrototypeDelete,
|
||||||
MapPrototypeSet,
|
MapPrototypeSet,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
// Copyright Joyent and Node contributors. All rights reserved. MIT license.
|
// Copyright Joyent and Node contributors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
import { primordials } from "ext:core/mod.js";
|
||||||
const {
|
const {
|
||||||
ArrayPrototypeForEach,
|
ArrayPrototypeForEach,
|
||||||
ArrayPrototypeIncludes,
|
ArrayPrototypeIncludes,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
// Copyright Joyent and Node contributors. All rights reserved. MIT license.
|
// Copyright Joyent and Node contributors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
import { primordials } from "ext:core/mod.js";
|
||||||
const {
|
const {
|
||||||
ArrayPrototypeFind,
|
ArrayPrototypeFind,
|
||||||
ObjectEntries,
|
ObjectEntries,
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { hideStackFrames } from "ext:deno_node/internal/hide_stack_frames.ts";
|
||||||
import { isArrayBufferView } from "ext:deno_node/internal/util/types.ts";
|
import { isArrayBufferView } from "ext:deno_node/internal/util/types.ts";
|
||||||
import { normalizeEncoding } from "ext:deno_node/internal/normalize_encoding.mjs";
|
import { normalizeEncoding } from "ext:deno_node/internal/normalize_encoding.mjs";
|
||||||
|
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
import { primordials } from "ext:core/mod.js";
|
||||||
const {
|
const {
|
||||||
ArrayPrototypeIncludes,
|
ArrayPrototypeIncludes,
|
||||||
ArrayPrototypeJoin,
|
ArrayPrototypeJoin,
|
||||||
|
|
|
@ -40,7 +40,7 @@ import {
|
||||||
} from "ext:deno_node/internal_binding/async_wrap.ts";
|
} from "ext:deno_node/internal_binding/async_wrap.ts";
|
||||||
import { codeMap } from "ext:deno_node/internal_binding/uv.ts";
|
import { codeMap } from "ext:deno_node/internal_binding/uv.ts";
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core } from "ext:core/mod.js";
|
||||||
const { ops } = core;
|
const { ops } = core;
|
||||||
|
|
||||||
interface Reader {
|
interface Reader {
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
// TODO(petamoriken): enable prefer-primordials for node polyfills
|
// TODO(petamoriken): enable prefer-primordials for node polyfills
|
||||||
// deno-lint-ignore-file prefer-primordials
|
// deno-lint-ignore-file prefer-primordials
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
import {
|
import {
|
||||||
AsyncWrap,
|
AsyncWrap,
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
// TODO(petamoriken): enable prefer-primordials for node polyfills
|
// TODO(petamoriken): enable prefer-primordials for node polyfills
|
||||||
// deno-lint-ignore-file prefer-primordials
|
// deno-lint-ignore-file prefer-primordials
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
|
|
||||||
const handleTypes = ["TCP", "TTY", "UDP", "FILE", "PIPE", "UNKNOWN"];
|
const handleTypes = ["TCP", "TTY", "UDP", "FILE", "PIPE", "UNKNOWN"];
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
// TODO(petamoriken): enable prefer-primordials for node polyfills
|
// TODO(petamoriken): enable prefer-primordials for node polyfills
|
||||||
// deno-lint-ignore-file prefer-primordials
|
// deno-lint-ignore-file prefer-primordials
|
||||||
|
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
import { primordials } from "ext:core/mod.js";
|
||||||
const {
|
const {
|
||||||
MapPrototypeGet,
|
MapPrototypeGet,
|
||||||
MapPrototypeDelete,
|
MapPrototypeDelete,
|
||||||
|
|
|
@ -16,7 +16,7 @@ import { isDeepStrictEqual } from "ext:deno_node/internal/util/comparisons.ts";
|
||||||
import process from "node:process";
|
import process from "node:process";
|
||||||
import { validateString } from "ext:deno_node/internal/validators.mjs";
|
import { validateString } from "ext:deno_node/internal/validators.mjs";
|
||||||
import { parseArgs } from "ext:deno_node/internal/util/parse_args/parse_args.js";
|
import { parseArgs } from "ext:deno_node/internal/util/parse_args/parse_args.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
import { primordials } from "ext:core/mod.js";
|
||||||
const {
|
const {
|
||||||
ArrayIsArray,
|
ArrayIsArray,
|
||||||
ArrayPrototypeJoin,
|
ArrayPrototypeJoin,
|
||||||
|
|
|
@ -5,11 +5,10 @@
|
||||||
/// <reference path="../../core/lib.deno_core.d.ts" />
|
/// <reference path="../../core/lib.deno_core.d.ts" />
|
||||||
/// <reference path="../webidl/internal.d.ts" />
|
/// <reference path="../webidl/internal.d.ts" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||||
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayIsArray,
|
ArrayIsArray,
|
||||||
ArrayPrototypeMap,
|
ArrayPrototypeMap,
|
||||||
|
|
|
@ -7,11 +7,10 @@
|
||||||
/// <reference path="./internal.d.ts" />
|
/// <reference path="./internal.d.ts" />
|
||||||
/// <reference path="./lib.deno_url.d.ts" />
|
/// <reference path="./lib.deno_url.d.ts" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||||
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayPrototypePop,
|
ArrayPrototypePop,
|
||||||
RegExpPrototypeExec,
|
RegExpPrototypeExec,
|
||||||
|
|
|
@ -6,10 +6,8 @@
|
||||||
/// <reference path="../web/internal.d.ts" />
|
/// <reference path="../web/internal.d.ts" />
|
||||||
/// <reference path="../web/lib.deno_web.d.ts" />
|
/// <reference path="../web/lib.deno_web.d.ts" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, internals, primordials } from "ext:core/mod.js";
|
||||||
const internals = globalThis.__bootstrap.internals;
|
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayPrototypeJoin,
|
ArrayPrototypeJoin,
|
||||||
ArrayPrototypeMap,
|
ArrayPrototypeMap,
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
/// <reference path="../web/internal.d.ts" />
|
/// <reference path="../web/internal.d.ts" />
|
||||||
/// <reference path="../web/lib.deno_web.d.ts" />
|
/// <reference path="../web/lib.deno_web.d.ts" />
|
||||||
|
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
import { primordials } from "ext:core/mod.js";
|
||||||
const {
|
const {
|
||||||
ArrayPrototypeSlice,
|
ArrayPrototypeSlice,
|
||||||
Error,
|
Error,
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
/// <reference path="../web/internal.d.ts" />
|
/// <reference path="../web/internal.d.ts" />
|
||||||
/// <reference path="../web/lib.deno_web.d.ts" />
|
/// <reference path="../web/lib.deno_web.d.ts" />
|
||||||
|
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
import { primordials } from "ext:core/mod.js";
|
||||||
const {
|
const {
|
||||||
ArrayPrototypeIncludes,
|
ArrayPrototypeIncludes,
|
||||||
MapPrototypeGet,
|
MapPrototypeGet,
|
||||||
|
|
|
@ -5,11 +5,10 @@
|
||||||
// parts still exists. This means you will observe a lot of strange structures
|
// parts still exists. This means you will observe a lot of strange structures
|
||||||
// and impossible logic branches based on what Deno currently supports.
|
// and impossible logic branches based on what Deno currently supports.
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||||
import DOMException from "ext:deno_web/01_dom_exception.js";
|
import DOMException from "ext:deno_web/01_dom_exception.js";
|
||||||
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayPrototypeFilter,
|
ArrayPrototypeFilter,
|
||||||
ArrayPrototypeIncludes,
|
ArrayPrototypeIncludes,
|
||||||
|
|
|
@ -6,9 +6,8 @@
|
||||||
/// <reference path="../web/internal.d.ts" />
|
/// <reference path="../web/internal.d.ts" />
|
||||||
/// <reference path="../web/lib.deno_web.d.ts" />
|
/// <reference path="../web/lib.deno_web.d.ts" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
import DOMException from "ext:deno_web/01_dom_exception.js";
|
import DOMException from "ext:deno_web/01_dom_exception.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayBuffer,
|
ArrayBuffer,
|
||||||
ArrayBufferPrototype,
|
ArrayBufferPrototype,
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayPrototypePush,
|
ArrayPrototypePush,
|
||||||
ArrayPrototypeShift,
|
ArrayPrototypeShift,
|
||||||
|
|
|
@ -13,7 +13,7 @@ import {
|
||||||
listenerCount,
|
listenerCount,
|
||||||
setIsTrusted,
|
setIsTrusted,
|
||||||
} from "ext:deno_web/02_event.js";
|
} from "ext:deno_web/02_event.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
import { primordials } from "ext:core/mod.js";
|
||||||
const {
|
const {
|
||||||
ArrayPrototypeEvery,
|
ArrayPrototypeEvery,
|
||||||
ArrayPrototypePush,
|
ArrayPrototypePush,
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/// <reference path="../../core/internal.d.ts" />
|
/// <reference path="../../core/internal.d.ts" />
|
||||||
|
|
||||||
import { EventTarget } from "ext:deno_web/02_event.js";
|
import { EventTarget } from "ext:deno_web/02_event.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
import { primordials } from "ext:core/mod.js";
|
||||||
const {
|
const {
|
||||||
Symbol,
|
Symbol,
|
||||||
SymbolToStringTag,
|
SymbolToStringTag,
|
||||||
|
|
|
@ -6,11 +6,10 @@
|
||||||
/// <reference path="../web/internal.d.ts" />
|
/// <reference path="../web/internal.d.ts" />
|
||||||
/// <reference lib="esnext" />
|
/// <reference lib="esnext" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||||
import DOMException from "ext:deno_web/01_dom_exception.js";
|
import DOMException from "ext:deno_web/01_dom_exception.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ObjectPrototypeIsPrototypeOf,
|
ObjectPrototypeIsPrototypeOf,
|
||||||
TypeErrorPrototype,
|
TypeErrorPrototype,
|
||||||
|
|
|
@ -6,8 +6,7 @@
|
||||||
/// <reference path="./lib.deno_web.d.ts" />
|
/// <reference path="./lib.deno_web.d.ts" />
|
||||||
/// <reference lib="esnext" />
|
/// <reference lib="esnext" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, internals, primordials } from "ext:core/mod.js";
|
||||||
const internals = globalThis.__bootstrap.internals;
|
|
||||||
const {
|
const {
|
||||||
op_arraybuffer_was_detached,
|
op_arraybuffer_was_detached,
|
||||||
op_transfer_arraybuffer,
|
op_transfer_arraybuffer,
|
||||||
|
@ -29,7 +28,6 @@ import {
|
||||||
remove,
|
remove,
|
||||||
signalAbort,
|
signalAbort,
|
||||||
} from "ext:deno_web/03_abort_signal.js";
|
} from "ext:deno_web/03_abort_signal.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayBuffer,
|
ArrayBuffer,
|
||||||
ArrayBufferIsView,
|
ArrayBufferIsView,
|
||||||
|
|
|
@ -9,11 +9,10 @@
|
||||||
/// <reference path="../web/lib.deno_web.d.ts" />
|
/// <reference path="../web/lib.deno_web.d.ts" />
|
||||||
/// <reference lib="esnext" />
|
/// <reference lib="esnext" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||||
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
DataViewPrototypeGetBuffer,
|
DataViewPrototypeGetBuffer,
|
||||||
DataViewPrototypeGetByteLength,
|
DataViewPrototypeGetByteLength,
|
||||||
|
|
|
@ -10,12 +10,11 @@
|
||||||
/// <reference path="./internal.d.ts" />
|
/// <reference path="./internal.d.ts" />
|
||||||
/// <reference lib="esnext" />
|
/// <reference lib="esnext" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||||
import { ReadableStream } from "ext:deno_web/06_streams.js";
|
import { ReadableStream } from "ext:deno_web/06_streams.js";
|
||||||
import { URL } from "ext:deno_url/00_url.js";
|
import { URL } from "ext:deno_url/00_url.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayBufferPrototype,
|
ArrayBufferPrototype,
|
||||||
ArrayBufferPrototypeSlice,
|
ArrayBufferPrototypeSlice,
|
||||||
|
|
|
@ -10,11 +10,10 @@
|
||||||
/// <reference path="./internal.d.ts" />
|
/// <reference path="./internal.d.ts" />
|
||||||
/// <reference lib="esnext" />
|
/// <reference lib="esnext" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||||
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
import { forgivingBase64Encode } from "ext:deno_web/00_infra.js";
|
import { forgivingBase64Encode } from "ext:deno_web/00_infra.js";
|
||||||
import { EventTarget, ProgressEvent } from "ext:deno_web/02_event.js";
|
import { EventTarget, ProgressEvent } from "ext:deno_web/02_event.js";
|
||||||
import { decode, TextDecoder } from "ext:deno_web/08_text_encoding.js";
|
import { decode, TextDecoder } from "ext:deno_web/08_text_encoding.js";
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
import { URL } from "ext:deno_url/00_url.js";
|
import { URL } from "ext:deno_url/00_url.js";
|
||||||
import DOMException from "ext:deno_web/01_dom_exception.js";
|
import DOMException from "ext:deno_web/01_dom_exception.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
import { primordials } from "ext:core/mod.js";
|
||||||
const {
|
const {
|
||||||
Error,
|
Error,
|
||||||
ObjectDefineProperties,
|
ObjectDefineProperties,
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
/// <reference path="./internal.d.ts" />
|
/// <reference path="./internal.d.ts" />
|
||||||
/// <reference path="./lib.deno_web.d.ts" />
|
/// <reference path="./lib.deno_web.d.ts" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const { InterruptedPrototype, ops } = core;
|
const { InterruptedPrototype, ops } = core;
|
||||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||||
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
||||||
|
@ -18,7 +18,6 @@ import {
|
||||||
setIsTrusted,
|
setIsTrusted,
|
||||||
} from "ext:deno_web/02_event.js";
|
} from "ext:deno_web/02_event.js";
|
||||||
import DOMException from "ext:deno_web/01_dom_exception.js";
|
import DOMException from "ext:deno_web/01_dom_exception.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayBufferPrototype,
|
ArrayBufferPrototype,
|
||||||
ArrayBufferPrototypeGetByteLength,
|
ArrayBufferPrototypeGetByteLength,
|
||||||
|
|
|
@ -5,9 +5,8 @@
|
||||||
/// <reference path="./internal.d.ts" />
|
/// <reference path="./internal.d.ts" />
|
||||||
/// <reference path="./lib.deno_web.d.ts" />
|
/// <reference path="./lib.deno_web.d.ts" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
SymbolFor,
|
SymbolFor,
|
||||||
ObjectPrototypeIsPrototypeOf,
|
ObjectPrototypeIsPrototypeOf,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
import { primordials } from "ext:core/mod.js";
|
||||||
const {
|
const {
|
||||||
ArrayPrototypeFilter,
|
ArrayPrototypeFilter,
|
||||||
ArrayPrototypeFind,
|
ArrayPrototypeFind,
|
||||||
|
|
|
@ -6,8 +6,7 @@
|
||||||
|
|
||||||
/// <reference path="../../core/internal.d.ts" />
|
/// <reference path="../../core/internal.d.ts" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayBufferPrototype,
|
ArrayBufferPrototype,
|
||||||
ArrayBufferIsView,
|
ArrayBufferIsView,
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
/// <reference path="../../core/internal.d.ts" />
|
/// <reference path="../../core/internal.d.ts" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
import { URL } from "ext:deno_url/00_url.js";
|
import { URL } from "ext:deno_url/00_url.js";
|
||||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||||
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
||||||
|
@ -20,7 +20,6 @@ import {
|
||||||
} from "ext:deno_web/02_event.js";
|
} from "ext:deno_web/02_event.js";
|
||||||
import { Blob, BlobPrototype } from "ext:deno_web/09_file.js";
|
import { Blob, BlobPrototype } from "ext:deno_web/09_file.js";
|
||||||
import { getLocationHref } from "ext:deno_web/12_location.js";
|
import { getLocationHref } from "ext:deno_web/12_location.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayBufferPrototype,
|
ArrayBufferPrototype,
|
||||||
ArrayBufferIsView,
|
ArrayBufferIsView,
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
/// <reference path="../../core/internal.d.ts" />
|
/// <reference path="../../core/internal.d.ts" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||||
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
|
||||||
|
@ -14,7 +14,6 @@ import {
|
||||||
headerListFromHeaders,
|
headerListFromHeaders,
|
||||||
headersFromHeaderList,
|
headersFromHeaderList,
|
||||||
} from "ext:deno_fetch/20_headers.js";
|
} from "ext:deno_fetch/20_headers.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayPrototypeJoin,
|
ArrayPrototypeJoin,
|
||||||
ArrayPrototypeMap,
|
ArrayPrototypeMap,
|
||||||
|
|
|
@ -2,10 +2,9 @@
|
||||||
|
|
||||||
/// <reference path="../../core/internal.d.ts" />
|
/// <reference path="../../core/internal.d.ts" />
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
Symbol,
|
Symbol,
|
||||||
SymbolFor,
|
SymbolFor,
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const { BadResource, Interrupted } = core;
|
const { BadResource, Interrupted } = core;
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const { Error } = primordials;
|
const { Error } = primordials;
|
||||||
|
|
||||||
class NotFound extends Error {
|
class NotFound extends Error {
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
Promise,
|
Promise,
|
||||||
SafeArrayIterator,
|
SafeArrayIterator,
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, internals, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
import { pathFromURL } from "ext:deno_web/00_infra.js";
|
import { pathFromURL } from "ext:deno_web/00_infra.js";
|
||||||
import { Event, EventTarget } from "ext:deno_web/02_event.js";
|
import { Event, EventTarget } from "ext:deno_web/02_event.js";
|
||||||
const internals = globalThis.__bootstrap.internals;
|
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayIsArray,
|
ArrayIsArray,
|
||||||
ArrayPrototypeIncludes,
|
ArrayPrototypeIncludes,
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayPrototypeFilter,
|
ArrayPrototypeFilter,
|
||||||
Error,
|
Error,
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, internals, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
const internals = globalThis.__bootstrap.internals;
|
|
||||||
import { Event, EventTarget } from "ext:deno_web/02_event.js";
|
import { Event, EventTarget } from "ext:deno_web/02_event.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
Error,
|
Error,
|
||||||
FunctionPrototypeBind,
|
FunctionPrototypeBind,
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const { BadResourcePrototype, InterruptedPrototype, ops } = core;
|
const { BadResourcePrototype, InterruptedPrototype, ops } = core;
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayIsArray,
|
ArrayIsArray,
|
||||||
ObjectPrototypeIsPrototypeOf,
|
ObjectPrototypeIsPrototypeOf,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
const core = globalThis.Deno.core;
|
import { core } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
import { HttpConn } from "ext:deno_http/01_http.js";
|
import { HttpConn } from "ext:deno_http/01_http.js";
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayPrototypeMap,
|
ArrayPrototypeMap,
|
||||||
ArrayPrototypeSlice,
|
ArrayPrototypeSlice,
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
SafeSet,
|
SafeSet,
|
||||||
SafeSetIterator,
|
SafeSetIterator,
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
Uint32Array,
|
Uint32Array,
|
||||||
} = primordials;
|
} = primordials;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
import { isatty } from "ext:runtime/40_tty.js";
|
import { isatty } from "ext:runtime/40_tty.js";
|
||||||
import { stdin } from "ext:deno_io/12_io.js";
|
import { stdin } from "ext:deno_io/12_io.js";
|
||||||
const { ArrayPrototypePush, StringPrototypeCharCodeAt, Uint8Array } =
|
const { ArrayPrototypePush, StringPrototypeCharCodeAt, Uint8Array } =
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
|
|
||||||
import * as timers from "ext:deno_web/02_timers.js";
|
import * as timers from "ext:deno_web/02_timers.js";
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ObjectDefineProperties,
|
ObjectDefineProperties,
|
||||||
ObjectPrototypeIsPrototypeOf,
|
ObjectPrototypeIsPrototypeOf,
|
||||||
|
|
|
@ -3,10 +3,8 @@
|
||||||
// Remove Intl.v8BreakIterator because it is a non-standard API.
|
// Remove Intl.v8BreakIterator because it is a non-standard API.
|
||||||
delete Intl.v8BreakIterator;
|
delete Intl.v8BreakIterator;
|
||||||
|
|
||||||
const core = globalThis.Deno.core;
|
import { core, internals, primordials } from "ext:core/mod.js";
|
||||||
const ops = core.ops;
|
const ops = core.ops;
|
||||||
const internals = globalThis.__bootstrap.internals;
|
|
||||||
const primordials = globalThis.__bootstrap.primordials;
|
|
||||||
const {
|
const {
|
||||||
ArrayPrototypeFilter,
|
ArrayPrototypeFilter,
|
||||||
ArrayPrototypeIncludes,
|
ArrayPrototypeIncludes,
|
||||||
|
|
Loading…
Reference in a new issue