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
f3eef0d4
Commit
f3eef0d4
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_number and Error_description implementation.
parent
7c0a7020
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
4 deletions
+28
-4
error.c
dlls/jscript/error.c
+28
-4
No files found.
dlls/jscript/error.c
View file @
f3eef0d4
...
...
@@ -42,15 +42,37 @@ static const WCHAR isPrototypeOfW[] = {'i','s','P','r','o','t','o','t','y','p','
static
HRESULT
Error_number
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
ErrorInstance
*
This
=
(
ErrorInstance
*
)
dispex
;
TRACE
(
"
\n
"
);
switch
(
flags
)
{
case
DISPATCH_PROPERTYGET
:
return
VariantCopy
(
retv
,
&
This
->
number
);
case
DISPATCH_PROPERTYPUT
:
return
VariantCopy
(
&
This
->
number
,
get_arg
(
dp
,
0
));
default:
FIXME
(
"unimplemented flags %x
\n
"
,
flags
);
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
;
ErrorInstance
*
This
=
(
ErrorInstance
*
)
dispex
;
TRACE
(
"
\n
"
);
switch
(
flags
)
{
case
DISPATCH_PROPERTYGET
:
return
VariantCopy
(
retv
,
&
This
->
description
);
case
DISPATCH_PROPERTYPUT
:
return
VariantCopy
(
&
This
->
description
,
get_arg
(
dp
,
0
));
default:
FIXME
(
"unimplemented flags %x
\n
"
,
flags
);
return
E_NOTIMPL
;
}
}
/* ECMA-262 3rd Edition 15.11.4.3 */
...
...
@@ -123,6 +145,8 @@ static void Error_destructor(DispatchEx *dispex)
{
ErrorInstance
*
This
=
(
ErrorInstance
*
)
dispex
;
VariantClear
(
&
This
->
number
);
VariantClear
(
&
This
->
description
);
VariantClear
(
&
This
->
message
);
heap_free
(
This
);
}
...
...
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