michael@0: /* michael@0: * Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/licenses/publicdomain/ michael@0: * Contributor: Jason Orendorff michael@0: */ michael@0: michael@0: // This test appeared in bug 497789 comment 78. michael@0: michael@0: var a = {x: 'a'}, michael@0: b1 = Object.create(a), michael@0: c1 = Object.create(b1), michael@0: b2 = Object.create(a), michael@0: c2 = Object.create(b2); michael@0: michael@0: b2.x = 'b'; // foreshadowing a.x michael@0: michael@0: var s = ''; michael@0: for each (var obj in [c1, c2]) michael@0: s += obj.x; michael@0: assertEq(s, 'ab'); michael@0: michael@0: reportCompare(0, 0, "Property cache soundness: objects with the same shape but different prototypes.");