summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1141329.js
blob: ee41a61bbb74f91abd2a8ccd49c89cc661506f9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
x = []
Object.defineProperty(x, 7, {})
function f() {
    "use strict"
    x.length = {
        valueOf: function() {
            return 7
        }
    }
}
for (var m = 0; m < 9; m++) {
    try {
        f()
    } catch (e) {}
}