diff --git a/.eslintrc.json b/.eslintrc.json index 6de0c06..1d238a9 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -8,6 +8,7 @@ }, { "files": ["index.js"], + "globals": {"Deno": false}, "rules": { "multiline-comment-style": ["off"] } diff --git a/index.js b/index.js index a6752ec..1b060b0 100644 --- a/index.js +++ b/index.js @@ -79,6 +79,12 @@ if (typeof custom === 'symbol') { prototype[custom] = Descending$prototype$show; } + /* istanbul ignore if */ + if (typeof Deno !== 'undefined') { + if (Deno != null && typeof Deno.customInspect === 'symbol') { + prototype[Deno.customInspect] = Descending$prototype$show; + } + } } //. ```javascript