FUTURE: remove Deno.customInspect (#23453)

This commit is contained in:
Asher Gomez 2024-04-19 20:50:18 +10:00 committed by GitHub
parent c497e766f1
commit 05b49a803f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 3 deletions

View file

@ -667,7 +667,7 @@ ObjectDefineProperties(finalDenoNs, {
new Error().stack,
'Use `Symbol.for("Deno.customInspect")` instead.',
);
return customInspect;
return internals.future ? undefined : customInspect;
},
},
});