mirror of
https://github.com/denoland/deno.git
synced 2024-12-14 11:27:57 -05:00
72fe9bb470
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
37 lines
833 B
TypeScript
37 lines
833 B
TypeScript
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
|
|
import { Console } from "ext:deno_node/internal/console/constructor.mjs";
|
|
import { windowOrWorkerGlobalScope } from "ext:runtime/98_global_scope.js";
|
|
// Don't rely on global `console` because during bootstrapping, it is pointing
|
|
// to native `console` object provided by V8.
|
|
const console = windowOrWorkerGlobalScope.console.value;
|
|
|
|
export default Object.assign({}, console, { Console });
|
|
|
|
export { Console };
|
|
export const {
|
|
assert,
|
|
clear,
|
|
count,
|
|
countReset,
|
|
debug,
|
|
dir,
|
|
dirxml,
|
|
error,
|
|
group,
|
|
groupCollapsed,
|
|
groupEnd,
|
|
info,
|
|
log,
|
|
profile,
|
|
profileEnd,
|
|
table,
|
|
time,
|
|
timeEnd,
|
|
timeLog,
|
|
timeStamp,
|
|
trace,
|
|
warn,
|
|
} = console;
|
|
// deno-lint-ignore no-explicit-any
|
|
export const indentLevel = (console as any)?.indentLevel;
|