jscript: Fixed Function method's lengths.
This commit is contained in:
parent
7701acc269
commit
0091b3fb1a
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue