-
Notifications
You must be signed in to change notification settings - Fork 683
Implement String.prototype.charAt() #320
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.charAt() #320
Conversation
|
||
// check undefined | ||
assert("hello world!".charAt(undefined) === "h"); | ||
|
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.
Please add test case for boolean arguments also.
Good to me. |
02bf718
to
de5d77f
Compare
Thanks for the review, boolean tests added. |
LGTM |
ecma_string_t *original_string_p = ecma_get_string_from_value (to_string_val); | ||
const ecma_length_t len = ecma_string_get_length (original_string_p); | ||
|
||
/* 3 */ |
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.
Could you, please, clarify why step 4 is performed before step 3?
JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs lvidacs.u-szeged@partner.samsung.com
de5d77f
to
59ad6d9
Compare
@ruben-ayrapetyan: The order is changed to follow the standard, thanks for the comment. |
|
Rebased & merged: 632618d |
@galpeter lets move to branches - since this PR wasn't automatically closed. Again. |
@egavrin we could move to branches but not all of us have rights to create branches. |
JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs lvidacs.u-szeged@partner.samsung.com