mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
FUTURE: remove Deno.customInspect
(#23453)
This commit is contained in:
parent
c497e766f1
commit
05b49a803f
3 changed files with 10 additions and 3 deletions
|
@ -667,7 +667,7 @@ ObjectDefineProperties(finalDenoNs, {
|
|||
new Error().stack,
|
||||
'Use `Symbol.for("Deno.customInspect")` instead.',
|
||||
);
|
||||
return customInspect;
|
||||
return internals.future ? undefined : customInspect;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue