-
Notifications
You must be signed in to change notification settings - Fork 677
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
Implement String.prototype.replace function. #474
Conversation
5aa7e40
to
4d4c4f8
Compare
ecma_length_t end, /**< end position */ | ||
bool free_base_string) /**< free base string or not */ | ||
{ | ||
ecma_string_t *appended_string; |
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.
The variable name is very similar to argument's name appended_string_p
. Maybe, ret_string_p
would be better.
Could you, please, add note to |
d5442ba
to
f8a55f7
Compare
I think I did the requested changes. |
context_p->input_length, | ||
true); | ||
} | ||
else if (action != LIT_CHAR_NULL) |
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.
The condition is always true.
@zherczeg, thank you for the update! After updating #474 (comment), #474 (comment), the changes would look good to me. |
f8a55f7
to
b82664b
Compare
Thank you for the review. I added two new tests. |
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
b82664b
to
f1c178c
Compare
lgtm |
Looks good to me |
|
Landed 048e209 |
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]