blob: eb594b3dd8603242471bfeee48825286f207db22 [file] [log] [blame]
function f(a) {
this.a = a;
assertEq(arguments[1], 'x');
}
for (var x = 0; x < 9; ++x) {
f.prototype = {};
var obj = new f(x, 'x'); // more than f.length arguments
assertEq(obj.a, x);
assertEq(Object.getPrototypeOf(obj), f.prototype);
}