jscript: Don't pass EXPR_NEWREF flag to evaluate member expression in array_expression_eval.

This commit is contained in:
Jacek Caban 2009-12-06 22:10:44 +01:00 committed by Alexandre Julliard
parent f1a543d546
commit 8d44d63849
2 changed files with 8 additions and 1 deletions

View File

@ -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;

View File

@ -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");