From 9b9ec44db7eeec9d390b63f93393578e258f05a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 13 Nov 2023 23:16:23 +0100 Subject: Revert "fix(ext/console): fix inspecting iterators error. (#20720)" (#21191) This reverts commit 0209f7b46954d1b7bf923b4191e5a356ec09622c. Reverting because it causes failures on `main`: https://github.com/denoland/deno/pull/20720#issuecomment-1809166755 --- ext/node/polyfills/internal_binding/util.ts | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'ext/node/polyfills/internal_binding') diff --git a/ext/node/polyfills/internal_binding/util.ts b/ext/node/polyfills/internal_binding/util.ts index 651fe9a4b..38eeebee0 100644 --- a/ext/node/polyfills/internal_binding/util.ts +++ b/ext/node/polyfills/internal_binding/util.ts @@ -129,18 +129,3 @@ export function getOwnNonIndexProperties( } return result; } - -export function previewEntries( - iter: Iterable, - isKeyValue?: boolean, -): Array { - if (isKeyValue) { - const arr = [...iter]; - if (Array.isArray(arr[0]) && arr[0].length === 2) { - return [([] as unknown[]).concat(...arr), true]; - } - return [arr, false]; - } else { - return [...iter]; - } -} -- cgit v1.2.3