blob: 73f059c24d47fc7d7daff710f0a6368e0581fb44 [file] [log] [blame]
// Reduced from v8-raytrace.
var Class = {
create : function() {
return function() {
this.initialize.apply(this, arguments);
}
}
}
var Bar = Class.create();
Bar.prototype = {
// Compiled third.
initialize : function() { }
}
var Foo = Class.create();
Foo.prototype = {
// Compiled second. Crashes when setting "bar". Uses LCallConstructor.
initialize : function() {
this.bar = new Bar();
}
}
// Compiled first.
function f() {
for (var i = 0; i < 100; i++) {
var foo = new Foo();
}
}
f();