michael@0: function testUndefinedPropertyAccess() { michael@0: var x = [1,2,3]; michael@0: var y = {}; michael@0: var a = { foo: 1 }; michael@0: y.__proto__ = x; michael@0: var z = [x, x, x, y, y, y, y, a, a, a]; michael@0: var s = ""; michael@0: for (var i = 0; i < z.length; ++i) michael@0: s += z[i].foo; michael@0: return s; michael@0: } michael@0: assertEq(testUndefinedPropertyAccess(), "undefinedundefinedundefinedundefinedundefinedundefinedundefined111");