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
f8e3e92b
Commit
f8e3e92b
authored
Dec 12, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Don't use EXPR_NEWREF in forin_statement_event.
parent
106fcb8e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
engine.c
dlls/jscript/engine.c
+1
-1
lang.js
dlls/jscript/tests/lang.js
+5
-0
No files found.
dlls/jscript/engine.c
View file @
f8e3e92b
...
...
@@ -1012,7 +1012,7 @@ HRESULT forin_statement_eval(script_ctx_t *ctx, statement_t *_stat, return_type_
return
hres
;
}
hres
=
expr_eval
(
ctx
,
stat
->
in_expr
,
EXPR_NEWREF
,
&
rt
->
ei
,
&
exprval
);
hres
=
expr_eval
(
ctx
,
stat
->
in_expr
,
0
,
&
rt
->
ei
,
&
exprval
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
dlls/jscript/tests/lang.js
View file @
f8e3e92b
...
...
@@ -803,6 +803,11 @@ obj1 = new Object();
for
(
obj1
.
nonexistent
;
tmp
;
tmp
=
false
)
ok
(
!
(
"nonexistent"
in
obj1
),
"nonexistent added to obj1"
);
obj1
=
new
Object
();
for
(
tmp
in
obj1
.
nonexistent
)
ok
(
false
,
"for(tmp in obj1.nonexistent) called with tmp = "
+
tmp
);
ok
(
!
(
"nonexistent"
in
obj1
),
"nonexistent added to obj1 by for..in loop"
);
ok
((
void
1
)
===
undefined
,
"(void 1) !== undefined"
);
var
inobj
=
new
Object
();
...
...
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