Skip to content

Implement Array.prototoype.toLocaleString() #96

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

Merged

Conversation

galpeter
Copy link
Contributor

JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com

@galpeter galpeter added the ecma builtins Related to ECMA built-in routines label May 22, 2015
@galpeter galpeter added this to the ECMA builtins milestone May 22, 2015
@galpeter
Copy link
Contributor Author

@dbatyai, please take a look.

@dbatyai
Copy link
Member

dbatyai commented May 23, 2015

lgtm

@ILyoan ILyoan mentioned this pull request May 26, 2015
25 tasks
uint32_t length = ecma_number_to_uint32 (length_number);

/* 4. */
ecma_string_t *separator_string_p = ecma_get_magic_string (ECMA_MAGIC_STRING_COMMA_CHAR);
Copy link
Contributor

Choose a reason for hiding this comment

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

How the separator was choosed?
Please, add comment with description, reminding that this is implementation-defined.

Maybe we should introduce some mark for implementation-defined places, that can be easily found with grep,
something like "Implementation-defined" string.
Later we should add a documentation paragraph that would list all the places, and maybe introduce some configuration options for them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, good point, will do the update.

@ruben-ayrapetyan ruben-ayrapetyan self-assigned this May 26, 2015
@galpeter galpeter force-pushed the array_prototype_tolocalestring branch from 9b576ed to 538fa81 Compare May 27, 2015 09:10
@galpeter
Copy link
Contributor Author

@ruben-ayrapetyan, I've update the pull request.

@egavrin
Copy link
Contributor

egavrin commented May 27, 2015

@ruben-ayrapetyan recheck me, please
@galpeter make push

* The Array.prototype's 'toLocaleString' single element operation routine
*
* See also:
* ECMA-262 v5, 15.4.4.3 steps 7-8 and 10.b-d
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems that steps 6-8 and 10.b-d or steps 7-8 and 10.c-d would be more correct,
as both steps 6 and 10.b perform [[Get]].

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ahh, yeah, I think then we should go with the steps 6-8 and 10.b-d

@ruben-ayrapetyan
Copy link
Contributor

Please, update the comment and make push

@galpeter galpeter force-pushed the array_prototype_tolocalestring branch 2 times, most recently from 4e51dab to 08561f2 Compare May 27, 2015 12:44
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ecma builtins Related to ECMA built-in routines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants