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
47b842bf
Commit
47b842bf
authored
Oct 02, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Don't initialize variables without initialiser to undefined in variable_list_eval.
parent
ec73ad29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
engine.c
dlls/jscript/engine.c
+11
-13
lang.js
dlls/jscript/tests/lang.js
+2
-0
No files found.
dlls/jscript/engine.c
View file @
47b842bf
...
...
@@ -517,25 +517,23 @@ HRESULT block_statement_eval(exec_ctx_t *ctx, statement_t *_stat, return_type_t
static
HRESULT
variable_list_eval
(
exec_ctx_t
*
ctx
,
variable_declaration_t
*
var_list
,
jsexcept_t
*
ei
)
{
variable_declaration_t
*
iter
;
HRESULT
hres
=
E_FAIL
;
HRESULT
hres
=
S_OK
;
for
(
iter
=
var_list
;
iter
;
iter
=
iter
->
next
)
{
exprval_t
exprval
;
VARIANT
val
;
if
(
iter
->
expr
)
{
exprval_t
exprval
;
if
(
!
iter
->
expr
)
continue
;
hres
=
expr_eval
(
ctx
,
iter
->
expr
,
0
,
ei
,
&
exprval
);
if
(
FAILED
(
hres
))
break
;
hres
=
expr_eval
(
ctx
,
iter
->
expr
,
0
,
ei
,
&
exprval
);
if
(
FAILED
(
hres
))
break
;
hres
=
exprval_to_value
(
ctx
->
parser
->
script
,
&
exprval
,
ei
,
&
val
);
exprval_release
(
&
exprval
);
if
(
FAILED
(
hres
))
break
;
}
else
{
V_VT
(
&
val
)
=
VT_EMPTY
;
}
hres
=
exprval_to_value
(
ctx
->
parser
->
script
,
&
exprval
,
ei
,
&
val
);
exprval_release
(
&
exprval
);
if
(
FAILED
(
hres
))
break
;
hres
=
jsdisp_propput_name
(
ctx
->
var_disp
,
iter
->
identifier
,
ctx
->
parser
->
script
->
lcid
,
&
val
,
ei
,
NULL
/*FIXME*/
);
VariantClear
(
&
val
);
...
...
dlls/jscript/tests/lang.js
View file @
47b842bf
...
...
@@ -741,6 +741,8 @@ function varTestFunc(varTest3) {
var
varTest4
;
}
varTestFunc
(
3
);
deleteTest
=
1
;
delete
deleteTest
;
try
{
...
...
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