-
Notifications
You must be signed in to change notification settings - Fork 691
Add new symbol related API functions. #2741
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
|
@zherczeg Thanks for the review, I've applied your suggestions. |
zherczeg
left a comment
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.
LGTM
|
@LaszloLango @galpeter Thanks for the reviews, I've updated the PR. |
LaszloLango
left a comment
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.
LGTM
|
@galpeter Do you have any other thoughts/comments on this PR? |
9f8b885 to
37b1b09
Compare
New functions: - ecma_create_symbol - ecma_value_is_symbol - jerry_get_symbol_descriptive_string Also improve the jerryx_handler_print to be able to print symbol values via using the jerry_get_symbol_descriptive_string API function for symbol values. JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
galpeter
left a comment
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.
lgtm
Picked from upstream jerryscript-project/jerryscript/pull/2741
* jerry: Add new symbol related API functions. Picked from upstream jerryscript-project/jerryscript/pull/2741 * n-api: add napi_create_symbol * jerry: Ensure that symbol properties can be set via computed object literals Picked from upstream jerryscript-project/jerryscript/pull/2747 * Revert jerry_value_is_error/jerry_get_value_from_error to jerry_value_has_error_flag/jerry_get_value_without_error_flag * jerry: Fixes assertion on calling String builtin with symbol Picked from upstream jerryscript-project/jerryscript/pull/2803
* jerry: Add new symbol related API functions. Picked from upstream jerryscript-project/jerryscript/pull/2741 * n-api: add napi_create_symbol * jerry: Ensure that symbol properties can be set via computed object literals Picked from upstream jerryscript-project/jerryscript/pull/2747 * Revert jerry_value_is_error/jerry_get_value_from_error to jerry_value_has_error_flag/jerry_get_value_without_error_flag * jerry: Fixes assertion on calling String builtin with symbol Picked from upstream jerryscript-project/jerryscript/pull/2803
* jerry: Add new symbol related API functions. Picked from upstream jerryscript-project/jerryscript/pull/2741 * n-api: add napi_create_symbol * jerry: Ensure that symbol properties can be set via computed object literals Picked from upstream jerryscript-project/jerryscript/pull/2747 * Revert jerry_value_is_error/jerry_get_value_from_error to jerry_value_has_error_flag/jerry_get_value_without_error_flag * jerry: Fixes assertion on calling String builtin with symbol Picked from upstream jerryscript-project/jerryscript/pull/2803
New functions:
Also improve the
jerryx_handler_printto be able to print symbol values via using theecma_get_symbol_descriptive_stringAPI function for symbol values.JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu