From 9f0830968ddd602a12ce0be076f3fd9824588d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Wed, 10 Jan 2024 14:07:44 +0100 Subject: [PATCH] test: handle new Iterator global Refs: https://github.com/v8/v8/commit/80fb7673eb2ddd2494edf6a491b943e574743d2c --- test/common/globals.js | 1 + test/parallel/test-repl-tab-complete.js | 1 + 2 files changed, 2 insertions(+) diff --git a/test/common/globals.js b/test/common/globals.js index 8b9b6b34f6abaf..7b5643a926d970 100644 --- a/test/common/globals.js +++ b/test/common/globals.js @@ -63,6 +63,7 @@ const intrinsics = new Set([ 'SharedArrayBuffer', 'Atomics', 'WebAssembly', + 'Iterator', ]); if (global.gc) { diff --git a/test/parallel/test-repl-tab-complete.js b/test/parallel/test-repl-tab-complete.js index 06a55414d5beb5..6784b28032c81a 100644 --- a/test/parallel/test-repl-tab-complete.js +++ b/test/parallel/test-repl-tab-complete.js @@ -632,6 +632,7 @@ const builtins = [ 'Int32Array', 'Int8Array', ...(common.hasIntl ? ['Intl'] : []), + 'Iterator', 'inspector', 'isFinite', 'isNaN',