-
Notifications
You must be signed in to change notification settings - Fork 686
Implemented Array.prototype.sort() #95
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
f939751
to
233dd6e
Compare
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.
Why we're using 2 here?
233dd6e
to
0fd2a85
Compare
Hi @egavrin, |
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.
@dbatyai, could you, please, add assertions with bound checking in the function?
0fd2a85
to
761c079
Compare
@ruben-ayrapetyan, I've added asserts to make sure we stay in bounds. |
@dbatyai, thank you! |
May we push it? |
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, add _p
suffix.
761c079
to
7fe0d39
Compare
I've updated the patch. |
Looks good to me. |
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, add FIXME
to the comment.
Seems that we should change the ecma_op_create_array_object
interface to take another type for length argument.
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.
Could you, please, raise an issue about this?
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.
Added FIXME
, and opened an issue about it: #133
7fe0d39
to
9a88ef0
Compare
@dbatyai great! |
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected] JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan [email protected]
9a88ef0
to
0fc82e2
Compare
merged: 6b8e34a |
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan [email protected]