Skip to content

Fix bound function length #547

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
merged 1 commit into from
Aug 10, 2015

Conversation

dbatyai
Copy link
Member

@dbatyai dbatyai commented Aug 7, 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 7, 2015
@dbatyai dbatyai added this to the ECMA builtins milestone Aug 7, 2015
@galpeter
Copy link
Contributor

galpeter commented Aug 7, 2015

lgtm

ecma_number_t *length_p = ecma_alloc_number ();
*length_p = 0;
*length_p = ECMA_NUMBER_ZERO;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you, please, move the operation to else block of if (ecma_object_get_class_name (this_arg_obj_p) == LIT_MAGIC_STRING_FUNCTION_UL) with /* 16. */ comment?

@ruben-ayrapetyan
Copy link
Contributor

After update according to #547 (comment), the changes would look good to me.

@dbatyai dbatyai force-pushed the function-bind-length branch from 314c6c2 to 1872c21 Compare August 7, 2015 13:28
@ruben-ayrapetyan
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-bind-length branch from 1872c21 to 58851bc Compare August 10, 2015 08:14
@dbatyai dbatyai merged commit 58851bc into jerryscript-project:master Aug 10, 2015
@dbatyai dbatyai deleted the function-bind-length 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.

3 participants