mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +00:00
LibJS: Fix logical expressions
The current implementation of logical AND (&&) and logical OR (||) always returns a boolean - this is not correct.
This commit is contained in:
committed by
Andreas Kling
parent
a58640ce6b
commit
6e5f9e20eb
@@ -889,7 +889,9 @@ bool Parser::match_secondary_expression() const
|
||||
|| type == TokenType::QuestionMark
|
||||
|| type == TokenType::Ampersand
|
||||
|| type == TokenType::Pipe
|
||||
|| type == TokenType::Caret;
|
||||
|| type == TokenType::Caret
|
||||
|| type == TokenType::DoubleAmpersand
|
||||
|| type == TokenType::DoublePipe;
|
||||
}
|
||||
|
||||
bool Parser::match_statement() const
|
||||
|
||||
Reference in New Issue
Block a user