Skip to content

Commit 40869f3

Browse files
committed
test: adapt tests to new Iterator API
1 parent a6d53b4 commit 40869f3

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

test/common/globals.js

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ const intrinsics = new Set([
6363
'SharedArrayBuffer',
6464
'Atomics',
6565
'WebAssembly',
66+
'Iterator',
6667
]);
6768

6869
if (global.gc) {

test/parallel/test-repl-tab-complete.js

+1
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ const builtins = [
632632
'Int32Array',
633633
'Int8Array',
634634
...(common.hasIntl ? ['Intl'] : []),
635+
'Iterator',
635636
'inspector',
636637
'isFinite',
637638
'isNaN',

test/parallel/test-util-inspect.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3215,7 +3215,7 @@ assert.strictEqual(
32153215
'[GeneratorFunction: generator] {\n' +
32163216
' [length]: 0,\n' +
32173217
" [name]: 'generator',\n" +
3218-
" [prototype]: Object [Generator] { [Symbol(Symbol.toStringTag)]: 'Generator' },\n" + // eslint-disable-line max-len
3218+
" [prototype]: Iterator [Generator] { [Symbol(Symbol.toStringTag)]: 'Generator' },\n" + // eslint-disable-line max-len
32193219
" [Symbol(Symbol.toStringTag)]: 'GeneratorFunction'\n" +
32203220
'}'
32213221
);

0 commit comments

Comments
 (0)