Debian Codegraph @

js/src/tests/non262/AsyncIterator/length.js

raw
1 // |reftest| skip-if(!this.hasOwnProperty('AsyncIterator')) -- AsyncIterator is not enabled unconditionally
2 /*---
3 The "length" property of AsyncIterator
4 ---*/
5
6 const propDesc = Reflect.getOwnPropertyDescriptor(AsyncIterator, 'length');
7 assertEq(propDesc.value, 0);
8 assertEq(propDesc.writable, false);
9 assertEq(propDesc.enumerable, false);
10 assertEq(propDesc.configurable, true);
11
12 if (typeof reportCompare === 'function')
13 reportCompare(0, 0);