summaryrefslogtreecommitdiff
path: root/cli/rt/11_streams.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-09-17 18:42:36 +0200
committerGitHub <noreply@github.com>2020-09-17 18:42:36 +0200
commitc307e3e4be4e02de86103cd48d28f5ba3b18628d (patch)
treea6c830606fabcd1a08d81ed66ac882a5691f52a2 /cli/rt/11_streams.js
parentbda937938550a0969588a6878d2fb6d72c17b22d (diff)
refactor: use Symbol.for instead of Symbol in cli/rt/ (#7537)
Diffstat (limited to 'cli/rt/11_streams.js')
-rw-r--r--cli/rt/11_streams.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/cli/rt/11_streams.js b/cli/rt/11_streams.js
index 7f8af19e2..630878e74 100644
--- a/cli/rt/11_streams.js
+++ b/cli/rt/11_streams.js
@@ -11,7 +11,8 @@
const { cloneValue, setFunctionName } = window.__bootstrap.webUtil;
const { assert, AssertionError } = window.__bootstrap.util;
- const { customInspect, inspect } = window.__bootstrap.console;
+
+ const customInspect = Symbol.for("Deno.customInspect");
const sym = {
abortAlgorithm: Symbol("abortAlgorithm"),
@@ -636,9 +637,7 @@
}
[customInspect]() {
- return `${this.constructor.name} {\n readable: ${
- inspect(this.readable)
- }\n writable: ${inspect(this.writable)}\n}`;
+ return this.constructor.name;
}
}