michael@0: // getprop, proto, 1 shape michael@0: michael@0: var expected = "11,22,33,11,22,33,11,22,33,11,22,33,11,22,33,"; michael@0: var actual = ''; michael@0: michael@0: var proto = { a: 11, b: 22, c: 33 }; michael@0: michael@0: function B() { michael@0: } michael@0: B.prototype = proto; michael@0: michael@0: function f() { michael@0: var o = new B(); michael@0: michael@0: for (var i = 0; i < 5; ++i) { michael@0: actual += o.a + ','; michael@0: actual += o.b + ','; michael@0: actual += o.c + ','; michael@0: } michael@0: } michael@0: michael@0: f(); michael@0: michael@0: assertEq(actual, expected);