-
Notifications
You must be signed in to change notification settings - Fork 685
Improve empty checks of ecma strings #1113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve empty checks of ecma strings #1113
Conversation
|
| return true; | ||
| } | ||
|
|
||
| return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can simply write:
return (logical_exp)
8d45fb7 to
b1583c7
Compare
|
|
||
| /* 8.b.iii */ | ||
| bool is_gap_empty = (ecma_string_get_length (context_p->gap_str_p) == 0); | ||
| bool is_gap_empty = (ecma_string_is_empty (context_p->gap_str_p)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These could be placed inside their respective ifs without an intermediate variable.
b1583c7 to
91f43b9
Compare
91f43b9 to
69435cc
Compare
|
@zherczeg, @akiss77, I've rebased to the current master. Please check. |
69435cc to
f26990e
Compare
|
LGTM |
f26990e to
5d16024
Compare
|
LGTM |
5d16024 to
7f153c7
Compare
JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com