blob: 655dfd2624ee13148eb8580145385c7595a5b602 (
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'))
let x = {a: () => true};
async function* gen() {
yield x.a();
yield x.a();
}
gen().every(() => true).then(
() => assertEq(true, false, 'expected error'),
err => assertEq(err instanceof Error, true),
);
x.a = () => {
throw Error();
};
if (typeof reportCompare === 'function')
reportCompare(0, 0);
|