blob: 65dbf8d5eb891463338704f7200afa5d0e058839 [file] [log] [blame]
function testDeepPropertyShadowing()
{
function h(node) {
var x = 0;
while (node) {
x++;
node = node.parent;
}
return x;
}
var tree = {__proto__: {__proto__: {parent: null}}};
h(tree);
h(tree);
tree.parent = {};
assertEq(h(tree), 2);
}
testDeepPropertyShadowing();