Commit f8e3e92b authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Don't use EXPR_NEWREF in forin_statement_event.

parent 106fcb8e
......@@ -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;
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment