summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/TypedObject/bug1098961.js
blob: 65a59a93727978f5b310cbe147631b260b7b5556 (plain)
1
2
3
4
5
6
7
8
9
if (!this.hasOwnProperty("TypedObject"))
    quit();

Array.prototype[Symbol.iterator] = function() {
    for (var i = 3; --i >= 0;) {
        yield this[i]
    }
}
new TypedObject.ArrayType(TypedObject.int32, 0).build(1, x => 1)