summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/baseline/eval-newtarget-osr.js
blob: 48bbdba80571f8e7a1270b6ce815619001abb6f0 (plain)
1
2
3
4
5
function f(expected) {
    eval("for (var i = 0; i < 30; i++) assertEq(new.target, expected)");
}
new f(f);
f(undefined);