summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrays/bug1423173.js
blob: 38e584ce36557673a3a57e137f4e1577769cee9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |jit-test| --baseline-eager
Array.prototype.push(1);
Object.freeze([].__proto__);
var x = [];
var c = 0;
for (var j = 0; j < 5; ++j) {
    try {
        x.push(function() {});
    } catch (e) {
        c++;
    }
}
assertEq(c, j);