Skip to content

Conversation

@rerobika
Copy link
Member

@rerobika rerobika commented Jan 30, 2019

New functions:

  • ecma_create_symbol
  • ecma_value_is_symbol
  • ecma_get_symbol_descriptive_string

Also improve the jerryx_handler_print to be able to print symbol values via using the ecma_get_symbol_descriptive_string API function for symbol values.

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

@rerobika rerobika added api Related to the public API development Feature implementation ES2015 Related to ES2015 features labels Jan 30, 2019
@LaszloLango LaszloLango added this to the Release 2.0 milestone Jan 30, 2019
@rerobika
Copy link
Member Author

@zherczeg Thanks for the review, I've applied your suggestions.

Copy link
Member

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

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

LGTM

@rerobika
Copy link
Member Author

rerobika commented Feb 7, 2019

@LaszloLango @galpeter Thanks for the reviews, I've updated the PR.

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

@rerobika
Copy link
Member Author

rerobika commented Feb 8, 2019

@galpeter Do you have any other thoughts/comments on this PR?

@rerobika rerobika force-pushed the symbol_api branch 3 times, most recently from 9f8b885 to 37b1b09 Compare February 12, 2019 10:15
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
Copy link
Contributor

@galpeter galpeter left a comment

Choose a reason for hiding this comment

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

lgtm

@rerobika rerobika merged commit 60bbd73 into jerryscript-project:master Feb 19, 2019
@rerobika rerobika deleted the symbol_api branch February 28, 2019 11:14
legendecas added a commit to yodaos-project/ShadowNode that referenced this pull request Mar 26, 2019
legendecas added a commit to yodaos-project/ShadowNode that referenced this pull request Mar 28, 2019
* 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
legendecas added a commit to yodaos-project/ShadowNode that referenced this pull request Mar 28, 2019
* 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
legendecas added a commit to yodaos-project/ShadowNode that referenced this pull request Mar 29, 2019
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Related to the public API development Feature implementation ES2015 Related to ES2015 features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants