summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Iterator/constructor-subclassable.js
blob: 9f65c65ad0283d6b5c780837c35d0fd0ef775fbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |reftest| skip-if(!this.hasOwnProperty('Iterator')) -- Iterator is not enabled unconditionally
/*---
  Iterator constructor can be subclassed.
---*/

class TestIterator extends Iterator {
}

assertEq(new TestIterator() instanceof Iterator, true);

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