Piotr Caban : jscript: Added Error_description and Error_number stubs.

Alexandre Julliard julliard at winehq.org
Tue Jul 21 09:34:23 CDT 2009


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

Author: Piotr Caban <piotr.caban at gmail.com>
Date:   Mon Jul 20 18:18:17 2009 +0200

jscript: Added Error_description and Error_number stubs.

---

 dlls/jscript/error.c |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/dlls/jscript/error.c b/dlls/jscript/error.c
index 422412a..a9bcb55 100644
--- a/dlls/jscript/error.c
+++ b/dlls/jscript/error.c
@@ -25,16 +25,34 @@ WINE_DEFAULT_DEBUG_CHANNEL(jscript);
 typedef struct {
     DispatchEx dispex;
 
+    VARIANT number;
+    VARIANT description;
     VARIANT message;
 } ErrorInstance;
 
+static const WCHAR descriptionW[] = {'d','e','s','c','r','i','p','t','i','o','n',0};
 static const WCHAR messageW[] = {'m','e','s','s','a','g','e',0};
+static const WCHAR numberW[] = {'n','u','m','b','e','r',0};
 static const WCHAR toStringW[] = {'t','o','S','t','r','i','n','g',0};
 static const WCHAR hasOwnPropertyW[] = {'h','a','s','O','w','n','P','r','o','p','e','r','t','y',0};
 static const WCHAR propertyIsEnumerableW[] =
     {'p','r','o','p','e','r','t','y','I','s','E','n','u','m','e','r','a','b','l','e',0};
 static const WCHAR isPrototypeOfW[] = {'i','s','P','r','o','t','o','t','y','p','e','O','f',0};
 
+static HRESULT Error_number(DispatchEx *dispex, LCID lcid, WORD flags,
+        DISPPARAMS *dp, VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp)
+{
+    FIXME("\n");
+    return E_NOTIMPL;
+}
+
+static HRESULT Error_description(DispatchEx *dispex, LCID lcid, WORD flags,
+        DISPPARAMS *dp, VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp)
+{
+    FIXME("\n");
+    return E_NOTIMPL;
+}
+
 /* ECMA-262 3rd Edition    15.11.4.3 */
 static HRESULT Error_message(DispatchEx *dispex, LCID lcid, WORD flags,
         DISPPARAMS *dp, VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp)
@@ -110,9 +128,11 @@ static void Error_destructor(DispatchEx *dispex)
 }
 
 static const builtin_prop_t Error_props[] = {
+    {descriptionW,              Error_description,                  0},
     {hasOwnPropertyW,           Error_hasOwnProperty,               PROPF_METHOD},
     {isPrototypeOfW,            Error_isPrototypeOf,                PROPF_METHOD},
     {messageW,                  Error_message,                      0},
+    {numberW,                   Error_number,                       0},
     {propertyIsEnumerableW,     Error_propertyIsEnumerable,         PROPF_METHOD},
     {toStringW,                 Error_toString,                     PROPF_METHOD}
 };
@@ -127,9 +147,11 @@ static const builtin_info_t Error_info = {
 };
 
 static const builtin_prop_t ErrorInst_props[] = {
+    {descriptionW,              Error_description,                  0},
     {hasOwnPropertyW,           Error_hasOwnProperty,               PROPF_METHOD},
     {isPrototypeOfW,            Error_isPrototypeOf,                PROPF_METHOD},
     {messageW,                  Error_message,                      0},
+    {numberW,                   Error_number,                       0},
     {propertyIsEnumerableW,     Error_propertyIsEnumerable,         PROPF_METHOD}
 };
 




More information about the wine-cvs mailing list