diff options
Diffstat (limited to 'js/src/tests/non262/AsyncIterator/length.js')
-rw-r--r-- | js/src/tests/non262/AsyncIterator/length.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/tests/non262/AsyncIterator/length.js b/js/src/tests/non262/AsyncIterator/length.js new file mode 100644 index 0000000000..26803fc44e --- /dev/null +++ b/js/src/tests/non262/AsyncIterator/length.js @@ -0,0 +1,13 @@ +// |reftest| skip-if(!this.hasOwnProperty('AsyncIterator')) -- AsyncIterator is not enabled unconditionally +/*--- + The "length" property of AsyncIterator +---*/ + +const propDesc = Reflect.getOwnPropertyDescriptor(AsyncIterator, 'length'); +assertEq(propDesc.value, 0); +assertEq(propDesc.writable, false); +assertEq(propDesc.enumerable, false); +assertEq(propDesc.configurable, true); + +if (typeof reportCompare === 'function') + reportCompare(0, 0); |