var funProto = Function.prototype;
assertEq(Object.getOwnPropertyDescriptor(funProto, "prototype"), undefined);

function Point(x, y) { this.x = x; this.y = y; }

var YAxisPoint = Point.bind(null, 0);

assertEq(YAxisPoint.prototype, undefined);

var oldPoint;
for (var i = 0, sz = RUNLOOP; i < sz; oldPoint = point, i++)
{
  var point = new YAxisPoint(5);
  assertEq(point === oldPoint, false);
  assertEq(point.x, 0);
  assertEq(point.y, 5);
  assertEq(Object.getOwnPropertyDescriptor(funProto, "prototype"), undefined);
  assertEq(Object.getOwnPropertyDescriptor(YAxisPoint, "prototype"), undefined);
}

checkStats({
  recorderStarted: 1,
  recorderAborted: 1,
  traceTriggered: 0,
  traceCompleted: 0,
});
