Skip to content
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 Function.prototype.apply() #163

Closed
wants to merge 1 commit into from
Closed

Implement Function.prototype.apply() #163

wants to merge 1 commit into from

Conversation

bzsolt
Copy link
Member

@bzsolt bzsolt commented Jun 9, 2015

JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély [email protected]

@galpeter galpeter mentioned this pull request Jun 9, 2015
11 tasks
@galpeter galpeter added the ecma builtins Related to ECMA built-in routines label Jun 9, 2015
@galpeter galpeter added this to the ECMA builtins milestone Jun 9, 2015

JERRY_ASSERT (appended_num == len || !ecma_is_completion_value_empty (ret_value));

if (len == 0)
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 if the ret_value at this point is not empty then we got an exception somewhere and then we should return that instead, no need to invoke the function with ecma_op_function_call.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, you're right. I've updated this part. Thanks.

@ILyoan ILyoan mentioned this pull request Jun 10, 2015
9 tasks
}
else
{
ecma_object_t* obj_p = ecma_get_object_from_value (arg2);
Copy link
Contributor

Choose a reason for hiding this comment

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

* should be at the variable name. Please check the other places to fix also

@bzsolt
Copy link
Member Author

bzsolt commented Jun 10, 2015

The PR has updated according the review.

@galpeter
Copy link
Contributor

lgtm

arg1,
arg_list,
(ecma_length_t) appended_num);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

The if (length == 0) part could be removed, as arg_list should be NULL, if length is zero.

@ruben-ayrapetyan ruben-ayrapetyan self-assigned this Jun 10, 2015
@egavrin egavrin added the development Feature implementation label Jun 11, 2015
@galpeter
Copy link
Contributor

Do we know why the bot failed?

@ruben-ayrapetyan
Copy link
Contributor

Looks good to me.
<br/ >

Do we know why the bot failed?

Seems that cause is in some temporary issues that occurred in testing system some time ago, the issues were identified and should have been already fixed now. Could you, please, rebase the pull request on current master? This should also restart the build bot testing for the changes.

JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély [email protected]
@bzsolt
Copy link
Member Author

bzsolt commented Jun 12, 2015

Yes, that was the reason. Now passes. Thanks.

@egavrin
Copy link
Contributor

egavrin commented Jun 12, 2015

make push

@egavrin egavrin assigned chunseoklee and bzsolt and unassigned egavrin and chunseoklee Jun 12, 2015
@galpeter
Copy link
Contributor

rebased & merged in: 7952b1c

@galpeter galpeter closed this Jun 12, 2015
@bzsolt bzsolt deleted the function_prototype_apply branch June 24, 2015 07:35
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.

5 participants