Skip to content

Trim whitespace from argument names in Function constructor #539

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

Conversation

dbatyai
Copy link
Member

@dbatyai dbatyai commented Aug 6, 2015

JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com

@dbatyai dbatyai added bug Undesired behaviour ecma builtins Related to ECMA built-in routines labels Aug 6, 2015
ecma_string_to_utf8_string (string_p, utf8_str_p, (ssize_t) buffer_size);

lit_utf8_iterator_t front = lit_utf8_iterator_create (utf8_str_p, buffer_size);
lit_utf8_iterator_seek_bos (&front);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think, line 1901 could be removed, as iterator is at the begin of string after creation.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@dbatyai dbatyai force-pushed the function_constructor_argument_parsing branch from 2071f0f to f87b001 Compare August 7, 2015 13:37
@sand1k
Copy link
Contributor

sand1k commented Aug 7, 2015

LGTM.

@dbatyai dbatyai assigned kkristof and unassigned sand1k Aug 10, 2015
@kkristof
Copy link
Contributor

Looks good to me.

JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com
@dbatyai dbatyai force-pushed the function_constructor_argument_parsing branch from f87b001 to b7d3189 Compare August 10, 2015 08:28
@egavrin egavrin assigned dbatyai and unassigned kkristof Aug 10, 2015
@dbatyai dbatyai merged commit b7d3189 into jerryscript-project:master Aug 10, 2015
@dbatyai dbatyai deleted the function_constructor_argument_parsing branch August 11, 2015 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behaviour ecma builtins Related to ECMA built-in routines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants