summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/newTargetRectifier.js
blob: 78716869fb2da83cba7226999944ca4d74d62d73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function testBailoutNewTarget() {
    function Inner(ex, forceRectifier) {
        bailout();
        assertEq(new.target, ex);
    }

    for (let i = 0; i < 1100; i++)
        new Inner(Inner);
}

for (let i = 0; i < 15; i++)
    testBailoutNewTarget();