Skip to content

Temporarily disable class Array/%TypedArray%.prototype.{slice, map, concat, filter, splice} related tests #2588

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

Merged
merged 1 commit into from
Nov 9, 2018

Conversation

rerobika
Copy link
Member

@rerobika rerobika commented Nov 8, 2018

This patch temporarily fixes #2587.

The reason of disabling these tests is that the current implementation slightly differs from the related part of the standard (ECMA-262 v6, 9.4.2.3.6.d.1).
This part requires the hidden Symbol.@@species property, hence this functionality has not been implemented yet in the project.
Also add the related test case to prevent further errors.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]

@rerobika
Copy link
Member Author

rerobika commented Nov 8, 2018

cc: @LaszloLango @zherczeg

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.

It looks like CONFIG_DISABLE_ES2015_SYMBOL is introduced by this patch. Please add it to the related README.md and config.h.

@@ -154,6 +154,7 @@ ecma_op_create_array_object_by_constructor (const ecma_value_t *arguments_list_p
ecma_object_t *object_p) /**< The object from whom the new array object
* is being created */
{
#ifdef CONFIG_DISABLE_ES2015_SYMBOL
Copy link
Contributor

Choose a reason for hiding this comment

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

#ifndef CONFIG_DISABLE_ES2015_SYMBOL

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, I realized that introducing this new macro without the Symbol is misleading. So I removed the related code paths, because it is not a a big removal. This is still not the best way but much better approach than using tricky macros for disabling code sections.

…oncat, filter, splice} related tests

This patch temporarily fixes jerryscript-project#2587.
The reason of disabling these tests is that the current implementation slightly differs from the related part of the standard (ECMA-262 v6, 9.4.2.3.6.d.1).
This part requires the hidden Symbol.@@species property, hence this functionality has not been implemented yet in the project.
Also add the related test case to prevent further errors.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
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, please raise a GitHub issue for the symbol implementation.

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

@LaszloLango LaszloLango merged commit ecf3858 into jerryscript-project:master Nov 9, 2018
@LaszloLango LaszloLango added bug Undesired behaviour ES2015 Related to ES2015 features labels Nov 9, 2018
rerobika added a commit to rerobika/jerryscript that referenced this pull request Nov 13, 2018
…r, splice} related tests (jerryscript-project#2588)

This patch fixes jerryscript-project#2587.
The reason of disabling these tests is that the current implementation slightly differs from the related part of the standard (ECMA-262 v6, 9.4.2.3.6.d.1).
This part requires the hidden Symbol.@@species property, hence this functionality has not been implemented yet in the project.
Also add the related test case to prevent further errors.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
@rerobika rerobika deleted the issue_2587 branch February 28, 2019 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behaviour ES2015 Related to ES2015 features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing prototype functions in ES2015
3 participants