summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js')
-rw-r--r--runtime/js/40_permissions.js2
-rw-r--r--runtime/js/90_deno_ns.js2
-rw-r--r--runtime/js/99_main.js4
3 files changed, 5 insertions, 3 deletions
diff --git a/runtime/js/40_permissions.js b/runtime/js/40_permissions.js
index b36fb643a..00b1a2974 100644
--- a/runtime/js/40_permissions.js
+++ b/runtime/js/40_permissions.js
@@ -87,7 +87,7 @@
return dispatched;
}
- [Symbol.for("Deno.customInspect")](inspect) {
+ [Symbol.for("Deno.privateCustomInspect")](inspect) {
return `${this.constructor.name} ${
inspect({ state: this.state, onchange: this.onchange })
}`;
diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js
index 9d0590878..3d17fccf6 100644
--- a/runtime/js/90_deno_ns.js
+++ b/runtime/js/90_deno_ns.js
@@ -53,6 +53,8 @@
ftruncateSync: __bootstrap.fs.ftruncateSync,
ftruncate: __bootstrap.fs.ftruncate,
errors: __bootstrap.errors.errors,
+ // TODO(kt3k): Remove this export at v2
+ // See https://github.com/denoland/deno/issues/9294
customInspect: __bootstrap.console.customInspect,
inspect: __bootstrap.console.inspect,
env: __bootstrap.os.env,
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index d0e86bce7..db334caea 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -247,7 +247,7 @@ delete Object.prototype.__proto__;
webidl.illegalConstructor();
}
- [Symbol.for("Deno.customInspect")](inspect) {
+ [Symbol.for("Deno.privateCustomInspect")](inspect) {
return `${this.constructor.name} ${inspect({})}`;
}
}
@@ -270,7 +270,7 @@ delete Object.prototype.__proto__;
webidl.illegalConstructor();
}
- [Symbol.for("Deno.customInspect")](inspect) {
+ [Symbol.for("Deno.privateCustomInspect")](inspect) {
return `${this.constructor.name} ${inspect({})}`;
}
}