michael@0: function Foo() { michael@0: u = 0; michael@0: } michael@0: michael@0: var x = new Foo(); michael@0: assertEq(Object.getPrototypeOf(x) === Foo.prototype, true); michael@0: assertEq(Object.getPrototypeOf(x) === Object.prototype, false);