blob: c2bc5442cfd922c359dc14fbee309c2fb87af400 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// |reftest| skip-if(!this.hasOwnProperty('Iterator')) -- Iterator is not enabled unconditionally
const iter = (value) => Iterator.from({
next: () => value,
});
for (let value of [
undefined,
null,
0,
false,
"test",
Symbol(""),
]) {
assertEq(iter(value).next(), value);
}
if (typeof reportCompare === 'function')
reportCompare(0, 0);
|