mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
jscript: Don't use EXPR_NEWREF in for_statement_event.
This commit is contained in:
parent
f68c03c4b2
commit
106fcb8e87
2 changed files with 6 additions and 1 deletions
|
@ -929,7 +929,7 @@ HRESULT for_statement_eval(script_ctx_t *ctx, statement_t *_stat, return_type_t
|
|||
if(FAILED(hres))
|
||||
return hres;
|
||||
}else if(stat->begin_expr) {
|
||||
hres = expr_eval(ctx, stat->begin_expr, EXPR_NEWREF, &rt->ei, &exprval);
|
||||
hres = expr_eval(ctx, stat->begin_expr, 0, &rt->ei, &exprval);
|
||||
if(FAILED(hres))
|
||||
return hres;
|
||||
|
||||
|
|
|
@ -798,6 +798,11 @@ for(var fi=0; fi < 4; fi++)
|
|||
ok(fi < 4, "fi = " + fi);
|
||||
ok(fi === 4, "fi !== 4");
|
||||
|
||||
tmp = true;
|
||||
obj1 = new Object();
|
||||
for(obj1.nonexistent; tmp; tmp = false)
|
||||
ok(!("nonexistent" in obj1), "nonexistent added to obj1");
|
||||
|
||||
ok((void 1) === undefined, "(void 1) !== undefined");
|
||||
|
||||
var inobj = new Object();
|
||||
|
|
Loading…
Reference in a new issue