Skip to content

Conversation

@rerobika
Copy link
Member

This patch fixes #3751.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]

@dbatyai dbatyai added the bug Undesired behaviour label May 25, 2020
if (literal_index >= PARSER_REGISTER_START && has_context)
if (!(literal_index >= PARSER_REGISTER_START
|| !has_context
|| scanner_literal_is_created (context_p, literal_index)))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please simplify this condition by merging the outer negation.

This patch fixes jerryscript-project#3751.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
Copy link
Member

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Assert fixes are so funny.

Copy link
Member

@dbatyai dbatyai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dbatyai dbatyai merged commit dd6d148 into jerryscript-project:master May 26, 2020
@rerobika rerobika deleted the fix_issue_3751 branch June 16, 2020 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Undesired behaviour

Projects

None yet

3 participants