mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
jscript: Don't pass EXPR_NEWREF flag to evaluate member expression in array_expression_eval.
This commit is contained in:
parent
f1a543d546
commit
8d44d63849
@ -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;
|
||||
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user