summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testMethodWriteBarrier4.js
blob: f120c9450d2873d05dff7b945ab4566a22bff38c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
var z = 0;
function f() {
    this.b = function() {};
    this.b = undefined;
    if (z++ > 8)
        this.b();
}

try {
    for (var i = 0; i < 10; i++)
        new f();
} catch (exc) {}