Skip to content

Implement String.prototype.indexOf() #456

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

Closed

Conversation

lvidacs
Copy link
Contributor

@lvidacs lvidacs commented Jul 23, 2015

JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs lvidacs.u-szeged@partner.samsung.com

const ecma_length_t search_len = ecma_string_get_length (search_str_p);
const lit_utf8_size_t search_size = ecma_string_get_size (search_str_p);

ecma_number_t * ret_num = ecma_alloc_number ();
Copy link
Contributor

Choose a reason for hiding this comment

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

No need for space after the *

@dbatyai dbatyai added ecma builtins Related to ECMA built-in routines development Feature implementation labels Jul 23, 2015
@dbatyai dbatyai added this to the ECMA builtins milestone Jul 23, 2015
JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs lvidacs.u-szeged@partner.samsung.com
@lvidacs lvidacs force-pushed the string-prototype-indexof branch from e8089ce to 6f20a12 Compare July 23, 2015 12:06
@lvidacs
Copy link
Contributor Author

lvidacs commented Jul 23, 2015

@galpeter, thanks for the review, the code is updated also with the _p suffix.

@egavrin
Copy link
Contributor

egavrin commented Jul 24, 2015

Good to me

@galpeter
Copy link
Contributor

lgtm

@galpeter
Copy link
Contributor

Landed: 64c81cc

@galpeter galpeter closed this Jul 24, 2015
@ILyoan ILyoan mentioned this pull request Jul 30, 2015
25 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Feature implementation ecma builtins Related to ECMA built-in routines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants