michael@0: var funProto = Function.prototype; michael@0: assertEq(Object.getOwnPropertyDescriptor(funProto, "prototype"), undefined); michael@0: michael@0: function Point(x, y) { this.x = x; this.y = y; } michael@0: michael@0: var YAxisPoint = Point.bind(null, 0); michael@0: michael@0: assertEq(YAxisPoint.prototype, undefined); michael@0: michael@0: var oldPoint; michael@0: for (var i = 0, sz = 9; i < sz; oldPoint = point, i++) michael@0: { michael@0: var point = new YAxisPoint(5); michael@0: assertEq(point === oldPoint, false); michael@0: assertEq(point.x, 0); michael@0: assertEq(point.y, 5); michael@0: assertEq(Object.getOwnPropertyDescriptor(funProto, "prototype"), undefined); michael@0: assertEq(Object.getOwnPropertyDescriptor(YAxisPoint, "prototype"), undefined); michael@0: } michael@0: