diff --git a/dlls/jscript/function.c b/dlls/jscript/function.c index 661b93c2576..f54c8c61fdc 100644 --- a/dlls/jscript/function.c +++ b/dlls/jscript/function.c @@ -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} }; diff --git a/dlls/jscript/tests/api.js b/dlls/jscript/tests/api.js index 8b4316f39cb..4d9caf3d1a2 100644 --- a/dlls/jscript/tests/api.js +++ b/dlls/jscript/tests/api.js @@ -1552,4 +1552,10 @@ testFunctions(Object.prototype, [ ["valueOf", 0] ]); +testFunctions(Function.prototype, [ + ["apply", 2], + ["call", 1], + ["toString", 0] + ]); + reportSuccess();