зеркало из https://github.com/mozilla/pjs.git
Patch from Erik Fabert <jerfa@yahoo.com> to fix splice/concat/slice number-of-formals 'length' property values (274035, r=me).
This commit is contained in:
Родитель
8011c2cb1d
Коммит
496ad03465
|
@ -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}
|
||||
|
|
Загрузка…
Ссылка в новой задаче