blob: 97c8b142a2061aff0e3766fdbdc4fa3fa00ce1a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// |reftest| skip-if(!this.hasOwnProperty('AsyncIterator'))
const fn = x => x;
function check(x) {
AsyncIterator.prototype.find.call(x, fn).then(
() => assertEq(true, false, 'expected error'),
err => {
assertEq(err instanceof TypeError, true);
}
);
}
check();
check(undefined);
check({});
check({next: 0});
if (typeof reportCompare === 'function')
reportCompare(0, 0);
|