summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Iterator/prototype/map/this-value-array-throws.js
blob: 3a13fefc97e4da4952445e1d283a03ab368ca7d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |reftest| skip-if(!this.hasOwnProperty('Iterator'))
//

/*---
esid: pending
description: TypeError not thrown when `this` is an Array.
info:
features: [Symbol.iterator]
---*/

Iterator.prototype.map.call([], x => x);

if (typeof reportCompare == 'function')
  reportCompare(0, 0);