Patch from Erik Fabert <jerfa@yahoo.com> to fix splice/concat/slice number-of-formals 'length' property values (274035, r=me).

git-svn-id: svn://10.0.0.236/trunk@167764 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brendan%mozilla.org 2005-01-15 04:34:39 +00:00
parent 684f684112
commit 87063fcd7b

View File

@ -1369,13 +1369,13 @@ static JSFunctionSpec array_methods[] = {
{"pop", array_pop, 0,0,0},
{"shift", array_shift, 0,0,0},
{"unshift", array_unshift, 1,0,0},
{"splice", array_splice, 1,0,0},
{"splice", array_splice, 2,0,0},
#endif
/* Python-esque sequence methods. */
#if JS_HAS_SEQUENCE_OPS
{"concat", array_concat, 0,0,0},
{"slice", array_slice, 0,0,0},
{"concat", array_concat, 1,0,0},
{"slice", array_slice, 2,0,0},
#endif
{0,0,0,0,0}