diff --git a/test/common/globals.js b/test/common/globals.js index f18b358e657a55..27a6ebf31f63c2 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', diff --git a/test/parallel/test-util-inspect.js b/test/parallel/test-util-inspect.js index 4c9e0d683fe7d0..ef388f0d0aa131 100644 --- a/test/parallel/test-util-inspect.js +++ b/test/parallel/test-util-inspect.js @@ -3215,7 +3215,7 @@ assert.strictEqual( '[GeneratorFunction: generator] {\n' + ' [length]: 0,\n' + " [name]: 'generator',\n" + - " [prototype]: Object [Generator] { [Symbol(Symbol.toStringTag)]: 'Generator' },\n" + // eslint-disable-line max-len + " [prototype]: Iterator [Generator] { [Symbol(Symbol.toStringTag)]: 'Generator' },\n" + // eslint-disable-line max-len " [Symbol(Symbol.toStringTag)]: 'GeneratorFunction'\n" + '}' );