Commit c0fc15b9 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

jscript: Fixed Array's function lengths.

parent 67520788
......@@ -784,19 +784,19 @@ static void Array_on_put(DispatchEx *dispex, const WCHAR *name)
}
static const builtin_prop_t Array_props[] = {
{concatW, Array_concat, PROPF_METHOD},
{joinW, Array_join, PROPF_METHOD},
{concatW, Array_concat, PROPF_METHOD|1},
{joinW, Array_join, PROPF_METHOD|1},
{lengthW, Array_length, 0},
{popW, Array_pop, PROPF_METHOD},
{pushW, Array_push, PROPF_METHOD},
{pushW, Array_push, PROPF_METHOD|1},
{reverseW, Array_reverse, PROPF_METHOD},
{shiftW, Array_shift, PROPF_METHOD},
{sliceW, Array_slice, PROPF_METHOD},
{sortW, Array_sort, PROPF_METHOD},
{spliceW, Array_splice, PROPF_METHOD},
{sliceW, Array_slice, PROPF_METHOD|2},
{sortW, Array_sort, PROPF_METHOD|1},
{spliceW, Array_splice, PROPF_METHOD|2},
{toLocaleStringW, Array_toLocaleString, PROPF_METHOD},
{toStringW, Array_toString, PROPF_METHOD},
{unshiftW, Array_unshift, PROPF_METHOD},
{unshiftW, Array_unshift, PROPF_METHOD|1},
};
static const builtin_info_t Array_info = {
......
......@@ -1503,4 +1503,19 @@ testFunctions(Date.prototype, [
["valueOf", 0]
]);
testFunctions(Array.prototype, [
["concat", 1],
["join", 1],
["push", 1],
["pop", 0],
["reverse", 0],
["shift", 0],
["slice", 2],
["sort", 1],
["splice", 2],
["toLocaleString", 0],
["toString", 0],
["unshift", 1]
]);
reportSuccess();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment