Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
152b3e48
Commit
152b3e48
authored
Sep 10, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added 'new' expression implementation.
parent
8ef7038b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
3 deletions
+36
-3
engine.c
dlls/jscript/engine.c
+36
-3
No files found.
dlls/jscript/engine.c
View file @
152b3e48
...
...
@@ -869,10 +869,43 @@ static HRESULT args_to_param(exec_ctx_t *ctx, argument_t *args, jsexcept_t *ei,
return
S_OK
;
}
HRESULT
member_new_expression_eval
(
exec_ctx_t
*
ctx
,
expression_t
*
expr
,
DWORD
flags
,
jsexcept_t
*
ei
,
exprval_t
*
ret
)
/* ECMA-262 3rd Edition 11.2.2 */
HRESULT
member_new_expression_eval
(
exec_ctx_t
*
ctx
,
expression_t
*
_expr
,
DWORD
flags
,
jsexcept_t
*
ei
,
exprval_t
*
ret
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
call_expression_t
*
expr
=
(
call_expression_t
*
)
_expr
;
exprval_t
exprval
;
VARIANT
constr
,
var
;
DISPPARAMS
dp
;
HRESULT
hres
;
TRACE
(
"
\n
"
);
hres
=
expr_eval
(
ctx
,
expr
->
expression
,
0
,
ei
,
&
exprval
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
args_to_param
(
ctx
,
expr
->
argument_list
,
ei
,
&
dp
);
if
(
SUCCEEDED
(
hres
))
hres
=
exprval_to_value
(
ctx
->
parser
->
script
,
&
exprval
,
ei
,
&
constr
);
exprval_release
(
&
exprval
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
V_VT
(
&
constr
)
!=
VT_DISPATCH
)
{
FIXME
(
"throw TypeError
\n
"
);
VariantClear
(
&
constr
);
return
E_FAIL
;
}
hres
=
disp_call
(
V_DISPATCH
(
&
constr
),
DISPID_VALUE
,
ctx
->
parser
->
script
->
lcid
,
DISPATCH_CONSTRUCT
,
&
dp
,
&
var
,
ei
,
NULL
/*FIXME*/
);
IDispatch_Release
(
V_DISPATCH
(
&
constr
));
if
(
FAILED
(
hres
))
return
hres
;
ret
->
type
=
EXPRVAL_VARIANT
;
ret
->
u
.
var
=
var
;
return
S_OK
;
}
HRESULT
call_expression_eval
(
exec_ctx_t
*
ctx
,
expression_t
*
_expr
,
DWORD
flags
,
jsexcept_t
*
ei
,
exprval_t
*
ret
)
...
...
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