From 72fe9bb47005e720444e65a66e91559287137780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 8 Mar 2023 07:44:54 -0400 Subject: refactor: rename InternalModuleLoader to ExtModuleLoader, use ext: scheme for snapshotted modules (#18041) This commit renames "deno_core::InternalModuleLoader" to "ExtModuleLoader" and changes the specifiers used by the modules loaded from this loader to "ext:". "internal:" scheme was really ambiguous and it's more characters than "ext:", which should result in slightly smaller snapshot size. Closes https://github.com/denoland/deno/issues/18020 --- ext/node/polyfills/internal/console/constructor.mjs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'ext/node/polyfills/internal/console') diff --git a/ext/node/polyfills/internal/console/constructor.mjs b/ext/node/polyfills/internal/console/constructor.mjs index 8c9a6d390..cd7d372a6 100644 --- a/ext/node/polyfills/internal/console/constructor.mjs +++ b/ext/node/polyfills/internal/console/constructor.mjs @@ -8,12 +8,12 @@ import { ERR_INCOMPATIBLE_OPTION_PAIR, ERR_INVALID_ARG_VALUE, isStackOverflowError, -} from "internal:deno_node/internal/errors.ts"; +} from "ext:deno_node/internal/errors.ts"; import { validateArray, validateInteger, validateObject, -} from "internal:deno_node/internal/validators.mjs"; +} from "ext:deno_node/internal/validators.mjs"; const previewEntries = (iter, isKeyValue) => { if (isKeyValue) { const arr = [...iter]; @@ -25,24 +25,24 @@ const previewEntries = (iter, isKeyValue) => { return [...iter]; } }; -import { Buffer } from "internal:deno_node/buffer.ts"; +import { Buffer } from "ext:deno_node/buffer.ts"; const { isBuffer } = Buffer; -import { formatWithOptions, inspect } from "internal:deno_node/internal/util/inspect.mjs"; +import { formatWithOptions, inspect } from "ext:deno_node/internal/util/inspect.mjs"; import { isMap, isMapIterator, isSet, isSetIterator, isTypedArray, -} from "internal:deno_node/internal/util/types.ts"; +} from "ext:deno_node/internal/util/types.ts"; import { CHAR_LOWERCASE_B as kTraceBegin, CHAR_LOWERCASE_E as kTraceEnd, CHAR_LOWERCASE_N as kTraceInstant, CHAR_UPPERCASE_C as kTraceCount, -} from "internal:deno_node/internal/constants.ts"; -import { clearScreenDown, cursorTo } from "internal:deno_node/internal/readline/callbacks.mjs"; -import cliTable from "internal:deno_node/internal/cli_table.ts"; +} from "ext:deno_node/internal/constants.ts"; +import { clearScreenDown, cursorTo } from "ext:deno_node/internal/readline/callbacks.mjs"; +import cliTable from "ext:deno_node/internal/cli_table.ts"; const kCounts = Symbol("counts"); const kTraceConsoleCategory = "node,node.console"; -- cgit v1.2.3