45
46
static JSObject* constructArrayWithSizeQuirk(ExecState* exec, const ArgList& args)
47
48
// a single numeric argument denotes the array size (!)
51
52
return throwError(exec, RangeError, "Array size is not a small enough positive integer.");
52
53
return new (exec) JSArray(exec->lexicalGlobalObject()->arrayStructure(), n);
55
56
// otherwise the array is constructed with the arguments in it
59
60
static JSObject* constructWithArrayConstructor(ExecState* exec, JSObject*, const ArgList& args)