1 2 3 4 5 6 7
function Foo() { u = 0; } var x = new Foo(); assertEq(Object.getPrototypeOf(x) === Foo.prototype, true); assertEq(Object.getPrototypeOf(x) === Object.prototype, false);