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