blob: bd2dfb9c7dac4ebee0afc9e8ababcc36032b4530 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Handle bailing from a constructor that's called from the interpreter.
function yesokhellothankyou() {
return 5;
}
function BailFromConstructor() {
this.x = "cats";
this.y = 5;
var z = yesokhellothankyou();
// Causes a bailout for purposes of inlining at the LRecompileCheck.
// Yep, this is great.
for (var i = 0; i < 10500; i++) {
x = 4;
}
return 4;
}
var x = new BailFromConstructor();
|