From 0091b3fb1ac340a01b947dea69b885028c9cd2a4 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Sun, 23 Aug 2009 23:38:16 +0200 Subject: [PATCH] jscript: Fixed Function method's lengths. --- dlls/jscript/function.c | 4 ++-- dlls/jscript/tests/api.js | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) 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();