outofline.js (355B)
1 // Breaks with --ion -n. See bug 718122. 2 3 function Foo() 4 { } 5 6 Foo.prototype.bar = function(){ 7 print("yes hello"); 8 return 5; 9 } 10 11 var x = new Foo(); 12 13 function f(x) { 14 // Enter Ion. 15 for (var i=0; i < 41; i++); 16 17 // At this point we have no type information for the GetPropertyCache below. 18 // This causes the cache to be typed as Value. 19 x.bar(); 20 } 21 22 f(x);