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