-
Notifications
You must be signed in to change notification settings - Fork 690
Fixes assertion on calling String builtin with symbol #2803
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
Fixes assertion on calling String builtin with symbol #2803
Conversation
21b6e8f to
3e05e19
Compare
rerobika
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.
Good catch! LGTM (informal) after fixing the style issue.
| } | ||
| #ifndef CONFIG_DISABLE_ES2015_SYMBOL_BUILTIN | ||
| /* 2.a */ | ||
| else if (ecma_is_value_symbol(arguments_list_p[0])) |
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.
One space needed before the opening parenthesis.
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.
Updated 🐒
JerryScript-DCO-1.0-Signed-off-by: legendecas legendecas@gmail.com
3e05e19 to
2067ffb
Compare
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
robertsipka
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
* 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
Add implementation for ECMA-262 v6 21.1.1.1 section.
JerryScript-DCO-1.0-Signed-off-by: legendecas legendecas@gmail.com