1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/ion/new-3.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,18 @@ 1.4 +// Uncompiled, polymorphic callsite for |new|. 1.5 + 1.6 +function Foo(prop) { 1.7 + this.name = "Foo"; 1.8 + this.prop = prop; 1.9 +} 1.10 + 1.11 +function f() { 1.12 + // Enter OSR here. 1.13 + for (var i = 0; i < 100; i++) 1.14 + { } 1.15 + 1.16 + // No type information below this point. 1.17 + var x = new Foo("cats"); 1.18 + return x; 1.19 +} 1.20 + 1.21 +assertEq(f().prop, "cats");