jscript: Fixed Function method's lengths.

This commit is contained in:
Piotr Caban 2009-08-23 23:38:16 +02:00 committed by Alexandre Julliard
parent 7701acc269
commit 0091b3fb1a
2 changed files with 8 additions and 2 deletions

View File

@ -360,8 +360,8 @@ static void Function_destructor(DispatchEx *dispex)
}
static const builtin_prop_t Function_props[] = {
{applyW, Function_apply, PROPF_METHOD},
{callW, Function_call, PROPF_METHOD},
{applyW, Function_apply, PROPF_METHOD|2},
{callW, Function_call, PROPF_METHOD|1},
{lengthW, Function_length, 0},
{toStringW, Function_toString, PROPF_METHOD}
};

View File

@ -1552,4 +1552,10 @@ testFunctions(Object.prototype, [
["valueOf", 0]
]);
testFunctions(Function.prototype, [
["apply", 2],
["call", 1],
["toString", 0]
]);
reportSuccess();