From 9b49de46446f3acb3081bfa809652a8a66d54bfb Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Wed, 26 Apr 2023 07:36:22 +0900 Subject: fix(core): Wrap safe collections' argument of primordials (#18750) --- ext/console/02_console.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/console/02_console.js') diff --git a/ext/console/02_console.js b/ext/console/02_console.js index 3e55efb74..5873a2ec2 100644 --- a/ext/console/02_console.js +++ b/ext/console/02_console.js @@ -56,7 +56,7 @@ const { SafeArrayIterator, SafeMap, SafeStringIterator, - SafeSet, + SafeSetIterator, SafeRegExp, SetPrototype, SetPrototypeEntries, @@ -2158,7 +2158,7 @@ class Console { const indexKey = isSet || isMap ? "(iter idx)" : "(idx)"; if (isSet) { - resultData = [...new SafeSet(data)]; + resultData = [...new SafeSetIterator(data)]; } else if (isMap) { let idx = 0; resultData = {}; -- cgit v1.2.3