Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
7c0a7020
Commit
7c0a7020
authored
Jul 20, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added Error_description and Error_number stubs.
parent
3afc444e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
error.c
dlls/jscript/error.c
+22
-0
No files found.
dlls/jscript/error.c
View file @
7c0a7020
...
@@ -25,16 +25,34 @@ WINE_DEFAULT_DEBUG_CHANNEL(jscript);
...
@@ -25,16 +25,34 @@ WINE_DEFAULT_DEBUG_CHANNEL(jscript);
typedef
struct
{
typedef
struct
{
DispatchEx
dispex
;
DispatchEx
dispex
;
VARIANT
number
;
VARIANT
description
;
VARIANT
message
;
VARIANT
message
;
}
ErrorInstance
;
}
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
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
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
hasOwnPropertyW
[]
=
{
'h'
,
'a'
,
's'
,
'O'
,
'w'
,
'n'
,
'P'
,
'r'
,
'o'
,
'p'
,
'e'
,
'r'
,
't'
,
'y'
,
0
};
static
const
WCHAR
propertyIsEnumerableW
[]
=
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
};
{
'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
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 */
/* ECMA-262 3rd Edition 15.11.4.3 */
static
HRESULT
Error_message
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
static
HRESULT
Error_message
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
...
@@ -110,9 +128,11 @@ static void Error_destructor(DispatchEx *dispex)
...
@@ -110,9 +128,11 @@ static void Error_destructor(DispatchEx *dispex)
}
}
static
const
builtin_prop_t
Error_props
[]
=
{
static
const
builtin_prop_t
Error_props
[]
=
{
{
descriptionW
,
Error_description
,
0
},
{
hasOwnPropertyW
,
Error_hasOwnProperty
,
PROPF_METHOD
},
{
hasOwnPropertyW
,
Error_hasOwnProperty
,
PROPF_METHOD
},
{
isPrototypeOfW
,
Error_isPrototypeOf
,
PROPF_METHOD
},
{
isPrototypeOfW
,
Error_isPrototypeOf
,
PROPF_METHOD
},
{
messageW
,
Error_message
,
0
},
{
messageW
,
Error_message
,
0
},
{
numberW
,
Error_number
,
0
},
{
propertyIsEnumerableW
,
Error_propertyIsEnumerable
,
PROPF_METHOD
},
{
propertyIsEnumerableW
,
Error_propertyIsEnumerable
,
PROPF_METHOD
},
{
toStringW
,
Error_toString
,
PROPF_METHOD
}
{
toStringW
,
Error_toString
,
PROPF_METHOD
}
};
};
...
@@ -127,9 +147,11 @@ static const builtin_info_t Error_info = {
...
@@ -127,9 +147,11 @@ static const builtin_info_t Error_info = {
};
};
static
const
builtin_prop_t
ErrorInst_props
[]
=
{
static
const
builtin_prop_t
ErrorInst_props
[]
=
{
{
descriptionW
,
Error_description
,
0
},
{
hasOwnPropertyW
,
Error_hasOwnProperty
,
PROPF_METHOD
},
{
hasOwnPropertyW
,
Error_hasOwnProperty
,
PROPF_METHOD
},
{
isPrototypeOfW
,
Error_isPrototypeOf
,
PROPF_METHOD
},
{
isPrototypeOfW
,
Error_isPrototypeOf
,
PROPF_METHOD
},
{
messageW
,
Error_message
,
0
},
{
messageW
,
Error_message
,
0
},
{
numberW
,
Error_number
,
0
},
{
propertyIsEnumerableW
,
Error_propertyIsEnumerable
,
PROPF_METHOD
}
{
propertyIsEnumerableW
,
Error_propertyIsEnumerable
,
PROPF_METHOD
}
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment