Implement Array.prototype.splice(). by bzsolt · Pull Request #86 · jerryscript-project/jerryscript · GitHub
Skip to content

Implement Array.prototype.splice(). - #86

Closed
bzsolt wants to merge 1 commit into
jerryscript-project:masterfrom
bzsolt:array_prototype_splice
Closed

bzsolt wants to merge 1 commit into
jerryscript-project:masterfrom
bzsolt:array_prototype_splice

Conversation

@bzsolt

@bzsolt bzsolt commented May 21, 2015

Copy link
Copy Markdown
Member

JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com

@ILyoan ILyoan mentioned this pull request May 21, 2015
25 tasks done
@galpeter galpeter added this to the ECMA builtins milestone May 21, 2015
@dbatyai dbatyai added the ecma builtins Related to ECMA built-in routines label May 22, 2015
@dbatyai

dbatyai commented May 23, 2015

Copy link
Copy Markdown
Member

@dbatyai dbatyai closed this May 23, 2015
@dbatyai dbatyai reopened this May 23, 2015

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

AFAIK: the * should be at the variable.

@bzsolt

bzsolt commented May 26, 2015

Copy link
Copy Markdown
Member Author

@galpeter fixed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why is the arg_index 2?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Because the first two argument are the start_index and the delete_count usually.
If the args_number is less than or equal to 2, then the condition of the loop will be false (we shouldn't put items into the array).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I see, okay.
lgtm

@egavrin

egavrin commented May 27, 2015

Copy link
Copy Markdown
Contributor

make push

@egavrin egavrin self-assigned this May 27, 2015

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Add blank line before if, please.

JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
@galpeter

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ecma builtins Related to ECMA built-in routines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants