Piotr Caban : jscript: Fixed Object's function lengths.

Alexandre Julliard julliard at winehq.org
Mon Aug 17 11:24:17 CDT 2009


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

Author: Piotr Caban <piotr.caban at gmail.com>
Date:   Mon Aug 17 12:13:20 2009 +0200

jscript: Fixed Object's function lengths.

---

 dlls/jscript/object.c     |    6 +++---
 dlls/jscript/tests/api.js |    9 +++++++++
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/dlls/jscript/object.c b/dlls/jscript/object.c
index f5ce564..e8624bd 100644
--- a/dlls/jscript/object.c
+++ b/dlls/jscript/object.c
@@ -145,9 +145,9 @@ static void Object_destructor(DispatchEx *dispex)
 }
 
 static const builtin_prop_t Object_props[] = {
-    {hasOwnPropertyW,        Object_hasOwnProperty,        PROPF_METHOD},
-    {isPrototypeOfW,         Object_isPrototypeOf,         PROPF_METHOD},
-    {propertyIsEnumerableW,  Object_propertyIsEnumerable,  PROPF_METHOD},
+    {hasOwnPropertyW,        Object_hasOwnProperty,        PROPF_METHOD|1},
+    {isPrototypeOfW,         Object_isPrototypeOf,         PROPF_METHOD|1},
+    {propertyIsEnumerableW,  Object_propertyIsEnumerable,  PROPF_METHOD|1},
     {toLocaleStringW,        Object_toLocaleString,        PROPF_METHOD},
     {toStringW,              Object_toString,              PROPF_METHOD},
     {valueOfW,               Object_valueOf,               PROPF_METHOD}
diff --git a/dlls/jscript/tests/api.js b/dlls/jscript/tests/api.js
index d4c4cab..8b4316f 100644
--- a/dlls/jscript/tests/api.js
+++ b/dlls/jscript/tests/api.js
@@ -1543,4 +1543,13 @@ testFunctions(Math, [
         ["tan", 1]
     ]);
 
+testFunctions(Object.prototype, [
+        ["hasOwnProperty", 1],
+        ["isPrototypeOf", 1],
+        ["propertyIsEnumerable", 1],
+        ["toLocaleString", 0],
+        ["toString", 0],
+        ["valueOf", 0]
+    ]);
+
 reportSuccess();




More information about the wine-cvs mailing list