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
8d44d638
Commit
8d44d638
authored
Dec 06, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Don't pass EXPR_NEWREF flag to evaluate member expression in array_expression_eval.
parent
f1a543d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
engine.c
dlls/jscript/engine.c
+1
-1
lang.js
dlls/jscript/tests/lang.js
+7
-0
No files found.
dlls/jscript/engine.c
View file @
8d44d638
...
...
@@ -1396,7 +1396,7 @@ HRESULT array_expression_eval(exec_ctx_t *ctx, expression_t *_expr, DWORD flags,
TRACE
(
"
\n
"
);
hres
=
expr_eval
(
ctx
,
expr
->
member_expr
,
EXPR_NEWREF
,
ei
,
&
exprval
);
hres
=
expr_eval
(
ctx
,
expr
->
member_expr
,
0
,
ei
,
&
exprval
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
dlls/jscript/tests/lang.js
View file @
8d44d638
...
...
@@ -863,6 +863,13 @@ ok(("1" in obj) === false, "1 is in obj");
obj
=
[
1
,
2
,
3
];
ok
((
1
in
obj
)
===
true
,
"1 is not in obj"
);
obj
=
new
Object
();
try
{
obj
.
prop
[
"test"
];
ok
(
false
,
"expected exception"
);
}
catch
(
e
)
{}
ok
(
!
(
"prop"
in
obj
),
"prop in obj"
);
ok
(
isNaN
(
NaN
)
===
true
,
"isNaN(NaN) !== true"
);
ok
(
isNaN
(
0.5
)
===
false
,
"isNaN(0.5) !== false"
);
ok
(
isNaN
(
Infinity
)
===
false
,
"isNaN(Infinity) !== false"
);
...
...
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