Commit 0091b3fb authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

jscript: Fixed Function method's lengths.

parent 7701acc2
......@@ -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}
};
......
......@@ -1552,4 +1552,10 @@ testFunctions(Object.prototype, [
["valueOf", 0]
]);
testFunctions(Function.prototype, [
["apply", 2],
["call", 1],
["toString", 0]
]);
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