Skip to content

Fix ecma_op_array_object_set_length method - #1985

Merged
yichoi merged 1 commit into
jerryscript-project:masterfrom
rerobika:issue_1972
Aug 30, 2017
Merged

yichoi merged 1 commit into
jerryscript-project:masterfrom
rerobika:issue_1972

Conversation

@rerobika

Copy link
Copy Markdown
Member

So far a freed variable was tested during error flag inspection.
This patch fixes it and #1972 as well.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu

@dbatyai dbatyai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this condition in lines 161-172 needed at all? Seems to me this is just a duplicate of lines 147-159, that doesn't seem to do anything other, than repeat the same thing. Or am I missing something?

@rerobika

Copy link
Copy Markdown
Member Author

@dbatyai As it seems, you are right this condition is unnecessary. I'll update this PR.

@dbatyai

dbatyai commented Aug 30, 2017

Copy link
Copy Markdown
Member

As it turns out, it is needed after all, as it can cause side effects. Please keep the original solution.

So far a freed variable was tested during error flag inspection.
This patch fixes it and jerryscript-project#1972 as well.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu

@dbatyai dbatyai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@yichoi

yichoi commented Aug 30, 2017

Copy link
Copy Markdown
Contributor

LGTM

@yichoi
yichoi merged commit 0ef2418 into jerryscript-project:master Aug 30, 2017
@rerobika
rerobika deleted the issue_1972 branch April 16, 2018 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants