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

(Partial) implementation of [Symbol.species] #1448

Merged
merged 6 commits into from
Mar 4, 2024

Conversation

andreabergia
Copy link
Contributor

This PR does:

  • add [Symbol.species] to various built-in objects, as required by the spec:
  • fixes a bug in the existing implementation for Promise (spec 27.2.4.9)
  • changes the test262 runner so that it does not consider Symbol.species an ignored feature; this in turn increases the feature coverage because some more tests pass.

Notice that this PR does not implement the behavior of the symbol (spec 7.3.22) - it just adds the symbol to some built-ins.

The spec says that it needs to return `this`, not the original
constructor! As a matter of fact, there's a test262 that this commit
fixes (`built-ins/Promise/Symbol.species/return-value.js`)
`Map`, `Array`, `RegExp`, and `Promise`
@rbri
Copy link
Collaborator

rbri commented Feb 22, 2024

@andreabergia thanks a lot. To me this looks like another step forward, have done a quick review of you changes and i'm fine.

@rbri
Copy link
Collaborator

rbri commented Mar 4, 2024

no complains, and because this is a step forward i will merge this soon

@rbri rbri merged commit 7d2c242 into mozilla:master Mar 4, 2024
3 checks passed
@andreabergia andreabergia deleted the symbol-species branch March 4, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants