js/src/jit-test/tests/ion/new-3.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:c279e44e5397
1 // Uncompiled, polymorphic callsite for |new|.
2
3 function Foo(prop) {
4 this.name = "Foo";
5 this.prop = prop;
6 }
7
8 function f() {
9 // Enter OSR here.
10 for (var i = 0; i < 100; i++)
11 { }
12
13 // No type information below this point.
14 var x = new Foo("cats");
15 return x;
16 }
17
18 assertEq(f().prop, "cats");

mercurial