Module: wine Branch: master Commit: c1b76a333b79ea94e3a7fc9108fcb8162263e8c4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c1b76a333b79ea94e3a7fc9108...
Author: Jacek Caban jacek@codeweavers.com Date: Fri Sep 19 00:45:35 2008 +0200
jscript: Added '>>>=' expression implementation.
---
dlls/jscript/engine.c | 10 +++++++--- dlls/jscript/tests/lang.js | 3 +++ 2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c index 3efec65..617d1ac 100644 --- a/dlls/jscript/engine.c +++ b/dlls/jscript/engine.c @@ -2890,10 +2890,14 @@ HRESULT assign_rshift_expression_eval(exec_ctx_t *ctx, expression_t *_expr, DWOR return assign_oper_eval(ctx, expr->expression1, expr->expression2, rshift_eval, ei, ret); }
-HRESULT assign_rrshift_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_rrshift_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, rshift2_eval, ei, ret); }
/* ECMA-262 3rd Edition 11.13.2 */ diff --git a/dlls/jscript/tests/lang.js b/dlls/jscript/tests/lang.js index 250093d..82a612a 100644 --- a/dlls/jscript/tests/lang.js +++ b/dlls/jscript/tests/lang.js @@ -252,6 +252,9 @@ ok((tmp <<= 1) === 16, "tmp <<= 1 !== 16"); tmp = 8; ok((tmp >>= 1) === 4, "tmp >>= 1 !== 4");
+tmp = 8; +ok((tmp >>>= 1) === 4, "tmp >>>= 1 !== 4"); + tmp = 3 || ok(false, "second or expression called"); ok(tmp === 3, "3 || (...) is not 3");