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