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

[Bugfix] free error in typearray set value routine #2147

Merged
merged 1 commit into from
Dec 20, 2017

Conversation

jiangzidong
Copy link
Contributor

Issue: #2143

JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]

@@ -897,6 +898,11 @@ ecma_op_typedarray_set_index_prop (ecma_object_t *obj_p, /**< a TypedArray objec
return true;
}

if (ECMA_IS_VALUE_ERROR (error))
Copy link
Contributor

Choose a reason for hiding this comment

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

What about merging the two if statements like this?

if (ECMA_IS_VALUE_ERROR (error))
{
  ecma_free_value (JERRY_CONTEXT (error_value));
  return false;
}

JERRY_ASSERT (ecma_is_value_empty (error));
return true;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@LaszloLango LaszloLango left a comment

Choose a reason for hiding this comment

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

LGTM

@galpeter
Copy link
Contributor

lgtm (the failed check is the mbed build which was moved to allowed failure group)

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.

None yet

4 participants