blob: 3f19f099c7217b9b69d77ab76bd85d2371281ede (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// |reftest| skip-if(!this.hasOwnProperty('AsyncIterator')) -- AsyncIterator is not enabled unconditionally
/*---
The prototype of the AsyncIterator constructor is the intrinsic object %FunctionPrototype%.
---*/
assertEq(Object.getPrototypeOf(AsyncIterator), Function.prototype);
const propDesc = Reflect.getOwnPropertyDescriptor(AsyncIterator, 'prototype');
assertEq(propDesc.writable, false);
assertEq(propDesc.enumerable, false);
assertEq(propDesc.configurable, false);
if (typeof reportCompare === 'function')
reportCompare(0, 0);
|