diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2023-01-29 23:15:01 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-29 15:15:01 +0100 |
commit | 266915d5ce354fde12b20f8f5ceb5ffdfacb7983 (patch) | |
tree | 8787d5b36ede178cd691492c5fdaab6b686b9f5f /ext/console/02_console.js | |
parent | 04ba709b6ec994fd084e0d09ff9edc9df3a1eefc (diff) |
fix(ext): internal `structuredClone` for `ArrayBuffer` and `TypedArray` subclasses (#17431)
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 = { |