Skip to content

Commit

Permalink
Merge pull request #30 from sanctuary-js/davidchambers/deno-inspect
Browse files Browse the repository at this point in the history
support Deno.inspect
  • Loading branch information
davidchambers authored May 13, 2021
2 parents dfcfdd6 + 379fc2c commit 1771bfd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
{
"files": ["index.js"],
"globals": {"Deno": false},
"rules": {
"multiline-comment-style": ["off"]
}
Expand Down
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1771bfd

Please sign in to comment.