mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 05:21:08 +00:00
jscript: Cc_parser_parse implement '&&' expression.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49450 Signed-off-by: Robert Wilhelm <robert.wilhelm@gmx.net> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
109fab2a55
commit
f586348deb
|
@ -161,7 +161,7 @@ CCLogicalORExpression
|
|||
CCLogicalANDExpression
|
||||
: CCBitwiseORExpression { $$ = $1; }
|
||||
| CCBitwiseANDExpression tAND CCBitwiseORExpression
|
||||
{ FIXME("'&&' expression not implemented\n"); ctx->hres = E_NOTIMPL; YYABORT; }
|
||||
{ $$ = ccval_bool(get_ccbool($1) && get_ccbool($3)); }
|
||||
|
||||
CCBitwiseORExpression
|
||||
: CCBitwiseXORExpression { $$ = $1; }
|
||||
|
|
|
@ -180,6 +180,23 @@ expect(@test, true);
|
|||
@set @test = (1 >= true-1)
|
||||
expect(@test, true);
|
||||
|
||||
@set @test = (true && true)
|
||||
expect(@test, true);
|
||||
|
||||
@set @test = (false && true)
|
||||
expect(@test, false);
|
||||
|
||||
@set @test = (true && false)
|
||||
expect(@test, false);
|
||||
|
||||
@set @test = (false && false)
|
||||
expect(@test, false);
|
||||
|
||||
if(!isWin64) {
|
||||
@set @test = (@_win32&&@_jscript_version>=5)
|
||||
expect(@test, true);
|
||||
}
|
||||
|
||||
@if (false)
|
||||
this wouldn not parse
|
||||
"@end
|
||||
|
|
Loading…
Reference in a new issue