diff options
Diffstat (limited to 'ext/console/02_console.js')
-rw-r--r-- | ext/console/02_console.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/console/02_console.js b/ext/console/02_console.js index 9b898a040..1720fe7e2 100644 --- a/ext/console/02_console.js +++ b/ext/console/02_console.js @@ -8,11 +8,9 @@ const core = window.Deno.core; const colors = window.__bootstrap.colors; const { - ArrayBufferIsView, AggregateErrorPrototype, ArrayPrototypeUnshift, isNaN, - DataViewPrototype, DatePrototype, DateNow, DatePrototypeGetTime, @@ -114,6 +112,7 @@ ReflectGetPrototypeOf, ReflectHas, TypedArrayPrototypeGetLength, + TypedArrayPrototypeGetSymbolToStringTag, WeakMapPrototype, WeakSetPrototype, } = window.__bootstrap.primordials; @@ -144,8 +143,7 @@ // Forked from Node's lib/internal/cli_table.js function isTypedArray(x) { - return ArrayBufferIsView(x) && - !ObjectPrototypeIsPrototypeOf(DataViewPrototype, x); + return TypedArrayPrototypeGetSymbolToStringTag(x) !== undefined; } const tableChars = { |