diff options
author | Chen Su <ghosind@gmail.com> | 2023-11-14 03:13:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 20:13:20 +0100 |
commit | 0209f7b46954d1b7bf923b4191e5a356ec09622c (patch) | |
tree | 9d7ade1586ac741a34442d9ebb673e1b42bce679 /ext/node/polyfills/internal/console/constructor.mjs | |
parent | fe0d9e078f49c6c69d5b3a02044b8709eb302b68 (diff) |
fix(ext/console): fix inspecting iterators error. (#20720)
Fixes #19776 and #20676.
Diffstat (limited to 'ext/node/polyfills/internal/console/constructor.mjs')
-rw-r--r-- | ext/node/polyfills/internal/console/constructor.mjs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/ext/node/polyfills/internal/console/constructor.mjs b/ext/node/polyfills/internal/console/constructor.mjs index 5ea9eeb3a..afa18bb97 100644 --- a/ext/node/polyfills/internal/console/constructor.mjs +++ b/ext/node/polyfills/internal/console/constructor.mjs @@ -17,17 +17,7 @@ import { validateInteger, validateObject, } from "ext:deno_node/internal/validators.mjs"; -const previewEntries = (iter, isKeyValue) => { - if (isKeyValue) { - const arr = [...iter]; - if (Array.isArray(arr[0]) && arr[0].length === 2) { - return [[].concat(...arr), true]; - } - return [arr, false]; - } else { - return [...iter]; - } -}; +import { previewEntries } from "ext:deno_node/internal_binding/util.ts"; import { Buffer } from "node:buffer"; const { isBuffer } = Buffer; import { @@ -475,7 +465,6 @@ const consoleMethods = { // https://console.spec.whatwg.org/#table table(tabularData, properties) { - console.log("tabularData", tabularData); if (properties !== undefined) { validateArray(properties, "properties"); } |