diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2023-11-28 16:07:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-28 16:07:48 +0100 |
commit | 32c041c8d7c5d72d4c1850f1fd6f3f38b530a16c (patch) | |
tree | a3c25d4bd887935b8f67732acc4cc081695c19ee /ext/node/polyfills/internal/console/constructor.mjs | |
parent | be4cd5eebf20d4495f7e3bff8e14ca22dd015659 (diff) |
Reland "fix(ext/console): fix inspecting iterators error. (#20720)" (#21370)
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"); } |