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
43a2d8b9
Commit
43a2d8b9
authored
Dec 15, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Don't pass EXPR_NEWREF to name expression in array_expression_eval.
parent
59564606
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
engine.c
dlls/jscript/engine.c
+1
-1
lang.js
dlls/jscript/tests/lang.js
+5
-1
No files found.
dlls/jscript/engine.c
View file @
43a2d8b9
...
...
@@ -1473,7 +1473,7 @@ HRESULT array_expression_eval(script_ctx_t *ctx, expression_t *_expr, DWORD flag
if
(
FAILED
(
hres
))
return
hres
;
hres
=
expr_eval
(
ctx
,
expr
->
expression2
,
EXPR_NEWREF
,
ei
,
&
exprval
);
hres
=
expr_eval
(
ctx
,
expr
->
expression2
,
0
,
ei
,
&
exprval
);
if
(
SUCCEEDED
(
hres
))
{
hres
=
exprval_to_value
(
ctx
,
&
exprval
,
ei
,
&
val
);
exprval_release
(
&
exprval
);
...
...
dlls/jscript/tests/lang.js
View file @
43a2d8b9
...
...
@@ -220,9 +220,13 @@ ok((~tmp.nonexistent) === -1, "!tmp.nonexistent = " + ~tmp.nonexistent);
ok
(
!
(
"nonexistent"
in
tmp
),
"nonexistent is in tmp after '~' expression"
)
tmp
=
new
Object
();
ok
(
isNaN
(
tmp
.
nonexistent
),
"!tmp.nonexistent = "
+
(
+
tmp
.
nonexistent
));
ok
(
isNaN
(
+
tmp
.
nonexistent
),
"!tmp.nonexistent = "
+
(
+
tmp
.
nonexistent
));
ok
(
!
(
"nonexistent"
in
tmp
),
"nonexistent is in tmp after '+' expression"
)
tmp
=
new
Object
();
tmp
[
tmp
.
nonexistent
];
ok
(
!
(
"nonexistent"
in
tmp
),
"nonexistent is in tmp after array expression"
)
tmp
=
0
;
if
(
true
)
tmp
=
1
;
...
...
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