blob: ebd30c21c89f291d11f1adb73227a9b8d2f5c153 [file] [log] [blame]
// 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());