diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-03 19:07:19 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-03 09:07:19 +0000 |
commit | 1a82b0f8086133053c558084c567a0403c2708e9 (patch) | |
tree | 51c7df89951dce957cbc8c48a160f8527ead2143 /runtime/js/99_main.js | |
parent | 71e4ac774bc18902a0d23f29d9b18b43b19bbbf2 (diff) |
BREAKING(console): remove `Deno.customInspect` (#25348)
Note: this is implemented on Deploy. However, according to @magurotuna,
a thin compatibility layer might be in the works that'd prevent
breakages for PRs such as this one.
Towards #22079
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r-- | runtime/js/99_main.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 764a7a23e..1854a73fa 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -56,7 +56,6 @@ import * as version from "ext:runtime/01_version.ts"; import * as os from "ext:runtime/30_os.js"; import * as timers from "ext:deno_web/02_timers.js"; import { - customInspect, getDefaultInspectOptions, getStderrNoColor, inspectArgs, @@ -534,18 +533,6 @@ ObjectDefineProperties(finalDenoNs, { noColor: core.propGetterOnly(() => op_bootstrap_no_color()), args: core.propGetterOnly(opArgs), mainModule: core.propGetterOnly(() => op_main_module()), - // TODO(kt3k): Remove this export at v2 - // See https://github.com/denoland/deno/issues/9294 - customInspect: { - get() { - warnOnDeprecatedApi( - "Deno.customInspect", - new Error().stack, - 'Use `Symbol.for("Deno.customInspect")` instead.', - ); - return internals.future ? undefined : customInspect; - }, - }, exitCode: { get() { return os.getExitCode(); |