diff --git a/ext/console/01_console.js b/ext/console/01_console.js
index 381bb02bdd..1876384790 100644
--- a/ext/console/01_console.js
+++ b/ext/console/01_console.js
@@ -364,9 +364,6 @@ const nodeCustomInspectSymbol = SymbolFor("nodejs.util.inspect.custom");
// Internal only, shouldn't be used by users.
const privateCustomInspect = SymbolFor("Deno.privateCustomInspect");
-// Used to keep track if it's a wrapped inspect proxy
-const privateCustomInspectProxy = SymbolFor("Deno.privateCustomInspectProxy");
-
function getUserOptions(ctx, isCrossContext) {
const ret = {
stylize: ctx.stylize,
@@ -454,7 +451,7 @@ function formatValue(
// Provide a hook for user-specified inspect functions.
// Check that value is an object with an inspect function on it.
- if (ctx.customInspect) {
+ if (ctx.customInspect && proxyDetails === null) {
if (
ReflectHas(value, customInspect) &&
typeof value[customInspect] === "function"
@@ -627,7 +624,7 @@ function formatRaw(ctx, value, recurseTimes, typedArray, proxyDetails) {
let extrasType = kObjectType;
- if (proxyDetails !== null && !ReflectGet(value, privateCustomInspectProxy)) {
+ if (proxyDetails !== null) {
if (ctx.showProxy) {
return `Proxy ` + formatValue(ctx, proxyDetails, recurseTimes);
}
diff --git a/ext/console/internal.d.ts b/ext/console/internal.d.ts
index 45af616d67..c38e9b2f9d 100644
--- a/ext/console/internal.d.ts
+++ b/ext/console/internal.d.ts
@@ -4,9 +4,12 @@
///
declare module "ext:deno_console/01_console.js" {
- function createFilteredInspectProxy(params: {
- object: TObject;
- keys: (keyof TObject)[];
- evaluate: boolean;
- }): Record;
+ function privateInspect(
+ object: TObject,
+ keys: (keyof TObject)[],
+ // deno-lint-ignore no-explicit-any
+ inspect: any,
+ // deno-lint-ignore no-explicit-any
+ inspectOptions: any,
+ ): string;
}
diff --git a/ext/web/09_file.js b/ext/web/09_file.js
index 23ef26d390..ae43ff8d9d 100644
--- a/ext/web/09_file.js
+++ b/ext/web/09_file.js
@@ -435,9 +435,7 @@ class Blob {
}
[SymbolFor("Deno.privateCustomInspect")](inspect, inspectOptions) {
- // return privateInspect(this, ["size", "type"], inspect, inspectOptions);
- const { size, type } = this;
- const value = { size, type };
+ const value = { size: this[_size], type: this[_type] };
return `${this.constructor.name} ${inspect(value, inspectOptions)}`;
}
}
diff --git a/ext/webidl/00_webidl.js b/ext/webidl/00_webidl.js
index 86e0b80eaa..7440e47e7b 100644
--- a/ext/webidl/00_webidl.js
+++ b/ext/webidl/00_webidl.js
@@ -1138,13 +1138,6 @@ function assertBranded(self, prototype) {
if (
!ObjectPrototypeIsPrototypeOf(prototype, self) || self[brand] !== brand
) {
- console.log(
- self.toString(),
- prototype.toString(),
- self === prototype,
- self[brand],
- brand.toString(),
- );
throw new TypeError("Illegal invocation");
}
}