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
dfb867af
Commit
dfb867af
authored
Sep 19, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added with statement implementation.
parent
4e9749bf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
2 deletions
+44
-2
engine.c
dlls/jscript/engine.c
+40
-2
lang.js
dlls/jscript/tests/lang.js
+4
-0
No files found.
dlls/jscript/engine.c
View file @
dfb867af
...
@@ -924,12 +924,50 @@ HRESULT return_statement_eval(exec_ctx_t *ctx, statement_t *_stat, return_type_t
...
@@ -924,12 +924,50 @@ HRESULT return_statement_eval(exec_ctx_t *ctx, statement_t *_stat, return_type_t
return
S_OK
;
return
S_OK
;
}
}
HRESULT
with_statement_eval
(
exec_ctx_t
*
ctx
,
statement_t
*
stat
,
return_type_t
*
rt
,
VARIANT
*
ret
)
/* ECMA-262 3rd Edition 12.10 */
HRESULT
with_statement_eval
(
exec_ctx_t
*
ctx
,
statement_t
*
_stat
,
return_type_t
*
rt
,
VARIANT
*
ret
)
{
{
FIXME
(
"
\n
"
);
with_statement_t
*
stat
=
(
with_statement_t
*
)
_stat
;
exprval_t
exprval
;
IDispatch
*
disp
;
DispatchEx
*
obj
;
VARIANT
val
;
HRESULT
hres
;
TRACE
(
"
\n
"
);
hres
=
expr_eval
(
ctx
,
stat
->
expr
,
0
,
&
rt
->
ei
,
&
exprval
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
exprval_to_value
(
ctx
->
parser
->
script
,
&
exprval
,
&
rt
->
ei
,
&
val
);
exprval_release
(
&
exprval
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
to_object
(
ctx
,
&
val
,
&
disp
);
VariantClear
(
&
val
);
if
(
FAILED
(
hres
))
return
hres
;
obj
=
iface_to_jsdisp
((
IUnknown
*
)
disp
);
IDispatch_Release
(
disp
);
if
(
!
obj
)
{
FIXME
(
"disp id not jsdisp
\n
"
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
hres
=
scope_push
(
ctx
->
scope_chain
,
obj
,
&
ctx
->
scope_chain
);
jsdisp_release
(
obj
);
if
(
FAILED
(
hres
));
hres
=
stat_eval
(
ctx
,
stat
->
statement
,
rt
,
ret
);
scope_pop
(
&
ctx
->
scope_chain
);
return
hres
;
}
}
/* ECMA-262 3rd Edition 12.12 */
HRESULT
labelled_statement_eval
(
exec_ctx_t
*
ctx
,
statement_t
*
stat
,
return_type_t
*
rt
,
VARIANT
*
ret
)
HRESULT
labelled_statement_eval
(
exec_ctx_t
*
ctx
,
statement_t
*
stat
,
return_type_t
*
rt
,
VARIANT
*
ret
)
{
{
FIXME
(
"
\n
"
);
FIXME
(
"
\n
"
);
...
...
dlls/jscript/tests/lang.js
View file @
dfb867af
...
@@ -657,4 +657,8 @@ ok(typeof(tmp.test) === "undefined", "tmp.test type = " + typeof(tmp.test));
...
@@ -657,4 +657,8 @@ ok(typeof(tmp.test) === "undefined", "tmp.test type = " + typeof(tmp.test));
for
(
iter
in
tmp
)
for
(
iter
in
tmp
)
ok
(
false
,
"tmp has prop "
+
iter
);
ok
(
false
,
"tmp has prop "
+
iter
);
tmp
.
testWith
=
true
;
with
(
tmp
)
ok
(
testWith
===
true
,
"testWith !== true"
);
reportSuccess
();
reportSuccess
();
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