jscript: Added '&=' expression implementation.

This commit is contained in:
Jacek Caban 2008-09-17 23:31:54 +02:00 committed by Alexandre Julliard
parent d2de1d3103
commit b8aeb15cb5
2 changed files with 11 additions and 3 deletions

View File

@ -2435,10 +2435,14 @@ HRESULT assign_mod_expression_eval(exec_ctx_t *ctx, expression_t *expr, DWORD fl
return E_NOTIMPL;
}
HRESULT assign_and_expression_eval(exec_ctx_t *ctx, expression_t *expr, DWORD flags, jsexcept_t *ei, exprval_t *ret)
/* ECMA-262 3rd Edition 11.13.2 */
HRESULT assign_and_expression_eval(exec_ctx_t *ctx, expression_t *_expr, DWORD flags, jsexcept_t *ei, exprval_t *ret)
{
FIXME("\n");
return E_NOTIMPL;
binary_expression_t *expr = (binary_expression_t*)_expr;
TRACE("\n");
return assign_oper_eval(ctx, expr->expression1, expr->expression2, bitand_eval, ei, ret);
}
/* ECMA-262 3rd Edition 11.13.2 */

View File

@ -289,6 +289,10 @@ tmp = (-3.5) & 0xffffffff;
ok(tmp === -3, "-3.5 & 0xffff !== -3");
ok(getVT(tmp) === "VT_I4", "getVT(3.5&0xffff) = " + getVT(tmp));
tmp = 10;
ok((tmp &= 8) === 8, "tmp(10) &= 8 !== 8");
ok(getVT(tmp) === "VT_I4", "getVT(tmp &= 8) = " + getVT(tmp));
ok(1 < 3.4, "1 < 3.4 failed");
ok(!(3.4 < 1), "3.4 < 1");
ok("abc" < "abcd", "abc < abcd failed");