diff options
Diffstat (limited to 'js/src/tests/non262/Iterator/prototype/map/this-value-array-throws.js')
-rw-r--r-- | js/src/tests/non262/Iterator/prototype/map/this-value-array-throws.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/tests/non262/Iterator/prototype/map/this-value-array-throws.js b/js/src/tests/non262/Iterator/prototype/map/this-value-array-throws.js new file mode 100644 index 0000000000..d8573bb3ce --- /dev/null +++ b/js/src/tests/non262/Iterator/prototype/map/this-value-array-throws.js @@ -0,0 +1,14 @@ +// |reftest| skip-if(!this.hasOwnProperty('Iterator')) +// + +/*--- +esid: pending +description: TypeError is thrown if `this` is an Array. +info: +features: [Symbol.iterator] +---*/ + +assertThrowsInstanceOf(() => Iterator.prototype.map.call([], x => x), TypeError); + +if (typeof reportCompare == 'function') + reportCompare(0, 0); |