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

Update API for invocation of functions and constructors #188

Merged
merged 1 commit into from
Jun 17, 2015

Conversation

ruben-ayrapetyan
Copy link
Contributor

With the change, if exception is thrown in jerry_api_function_call and jerry_api_construct_object, the exception object is returned to the caller.

Related issue: #181

@egavrin
Copy link
Contributor

egavrin commented Jun 15, 2015

Good to me.

@egavrin egavrin added this to the Core ECMA features milestone Jun 15, 2015
@egavrin egavrin removed their assignment Jun 15, 2015
@egavrin egavrin added the minor label Jun 15, 2015
@ruben-ayrapetyan
Copy link
Contributor Author

@galpeter, could you review, please?

jerry_api_convert_ecma_value_to_api_value (retval_p, type_error_value);

ecma_deref_object (type_error_obj_p);
} /* jerry_api_throw_type_error */
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment does not match the name of the method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@ruben-ayrapetyan
Copy link
Contributor Author

@galpeter, thank you for note.
Pull request is updated.

@galpeter
Copy link
Contributor

@ruben-ayrapetyan, looks good to me.

@egavrin
Copy link
Contributor

egavrin commented Jun 17, 2015

make push

With the change, if exception is thrown in `jerry_api_function_call` and `jerry_api_construct_object`, the exception object is returned to the caller.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants