Piotr Caban : jscript: Fixed Function method's lengths.

Alexandre Julliard julliard at winehq.org
Mon Aug 24 10:08:28 CDT 2009


Module: wine
Branch: master
Commit: 0091b3fb1ac340a01b947dea69b885028c9cd2a4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0091b3fb1ac340a01b947dea69b885028c9cd2a4

Author: Piotr Caban <piotr.caban at gmail.com>
Date:   Sun Aug 23 23:38:16 2009 +0200

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 661b93c..f54c8c6 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 8b4316f..4d9caf3 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();




More information about the wine-cvs mailing list