blob: 46b6c4e08a80ae3fa1707c4630cb93d946108b45 [file] [log] [blame]
function f(a, b) {
this.a = a;
assertEq(b, 'x');
}
for (var x = 0; x < 9; ++x) {
f.prototype = {};
var obj = new f(x, 'x');
assertEq(obj.a, x);
assertEq(Object.getPrototypeOf(obj), f.prototype);
}