jscript: Don't use EXPR_NEWREF in forin_statement_event.
This commit is contained in:
parent
106fcb8e87
commit
f8e3e92be3
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue