From 7e957ee6ceae564e08b07421e552f09280c0a242 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Thu, 23 Sep 2021 14:29:40 +0900 Subject: [PATCH] BREAKING(ext/console): remove Deno.customInspect --- cli/dts/lib.deno.ns.d.ts | 9 --------- ext/console/02_console.js | 1 - runtime/js/90_deno_ns.js | 3 --- 3 files changed, 13 deletions(-) diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index 054f3b385cb974..3eba5f1de363ff 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -2262,15 +2262,6 @@ declare namespace Deno { */ export const args: string[]; - /** - * @deprecated A symbol which can be used as a key for a custom method which will be - * called when `Deno.inspect()` is called, or when the object is logged to - * the console. - * - * This symbol is deprecated since 1.9. Use `Symbol.for("Deno.customInspect")` instead. - */ - export const customInspect: unique symbol; - /** The URL of the entrypoint module entered from the command-line. */ export const mainModule: string; diff --git a/ext/console/02_console.js b/ext/console/02_console.js index 455df4570796bd..ee25cf2746dc66 100644 --- a/ext/console/02_console.js +++ b/ext/console/02_console.js @@ -2088,7 +2088,6 @@ CSI, inspectArgs, Console, - customInspect, inspect, wrapConsole, createFilteredInspectProxy, diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js index 177a0dea089e83..107eedfd7882f3 100644 --- a/runtime/js/90_deno_ns.js +++ b/runtime/js/90_deno_ns.js @@ -53,9 +53,6 @@ ftruncateSync: __bootstrap.fs.ftruncateSync, ftruncate: __bootstrap.fs.ftruncate, errors: __bootstrap.errors.errors, - // TODO(kt3k): Remove this export at v2 - // See https://github.com/denoland/deno/issues/9294 - customInspect: __bootstrap.console.customInspect, inspect: __bootstrap.console.inspect, env: __bootstrap.os.env, exit: __bootstrap.os.exit,