michael@0: // Breaks with --ion -n. See bug 718122. michael@0: michael@0: function Foo() michael@0: { } michael@0: michael@0: Foo.prototype.bar = function(){ michael@0: print("yes hello"); michael@0: return 5; michael@0: } michael@0: michael@0: var x = new Foo(); michael@0: michael@0: function f(x) { michael@0: // Enter Ion. michael@0: for (var i=0; i < 41; i++); michael@0: michael@0: // At this point we have no type information for the GetPropertyCache below. michael@0: // This causes the cache to be typed as Value. michael@0: x.bar(); michael@0: } michael@0: michael@0: f(x);