summaryrefslogtreecommitdiff
path: root/runtime/js/99_main.js
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-04-19 20:50:18 +1000
committerGitHub <noreply@github.com>2024-04-19 20:50:18 +1000
commit05b49a803fb460c254d00fc71c5e8958215f92c7 (patch)
treee3c0ea65d00ec18ef9507940023de3e936600a5a /runtime/js/99_main.js
parentc497e766f1a136c674d8be2467eb103c85fe1d44 (diff)
FUTURE: remove `Deno.customInspect` (#23453)
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r--runtime/js/99_main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index 4c0a9b5e7..8164e0c9a 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -667,7 +667,7 @@ ObjectDefineProperties(finalDenoNs, {
new Error().stack,
'Use `Symbol.for("Deno.customInspect")` instead.',
);
- return customInspect;
+ return internals.future ? undefined : customInspect;
},
},
});