summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug825705.js
blob: ebd30c21c89f291d11f1adb73227a9b8d2f5c153 (plain)
1
2
3
4
5
6
7
8
// Test 1: When constructing x, we shouldn't take the prototype for this.
// it will crash if that happens
evalcx("\
    var x = newGlobal().Object;\
    function f() { return new x; }\
    f();\
    f();\
", newGlobal());