1 2 3 4 5 6 7 8 9
function foo() { var x = {}; x.__proto__ = function() { return 0 } return x; } var a = foo(); var b = foo(); assertEq(a.__proto__ === b.__proto__, false);