From 266915d5ce354fde12b20f8f5ceb5ffdfacb7983 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Sun, 29 Jan 2023 23:15:01 +0900 Subject: fix(ext): internal `structuredClone` for `ArrayBuffer` and `TypedArray` subclasses (#17431) --- ext/console/02_console.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ext/console') 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 = { -- cgit v1.2.3