-
Notifications
You must be signed in to change notification settings - Fork 676
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
Implemented Array.prototype.filter() #89
Conversation
lgtm |
ecma_op_object_get (obj_p, magic_string_length_p), | ||
ret_value); | ||
|
||
ECMA_OP_TO_NUMBER_TRY_CATCH (len_number, len_value, ret_value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is part of step 3, isn't it?
to_index_string_p, | ||
get_value, | ||
false); | ||
JERRY_ASSERT (ecma_is_completion_value_normal (put_comp_value)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, change the assertion to ecma_is_completion_value_normal_true (put_comp_value)
.
I've updated the patch. |
|
ecma_deref_ecma_string (index_str_p); | ||
} | ||
|
||
ecma_free_completion_value (to_object_comp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the to_object_comp
? Why should it be freed?
@egavrin, @ruben-ayrapetyan sorry, fixed |
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
|
@dbatyai @ruben-ayrapetyan Nope ^_^, wrong email
|
@egavrin , ed47d2279a9758ee3e82f7dac87f3dccdd9dc566 seems to be another commit. In other, already merged, commits the [email protected] e-mail is used. |
@ruben-ayrapetyan ah, my bad. |
merged: 3329583 |
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]