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

Make sure babel parser throws exactly same recoverable errors when estree plugin is enabled #12375

Merged
merged 13 commits into from Dec 3, 2020

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Nov 19, 2020

Q                       A
Fixed Issues? Babel parser now throws identical errors when estree plugin is enabled
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

This PR can be reviewed commits by commits.

The first commit implements matching "errors" of AST output to fixture-test-runner, so we can test whether we still throw exactly the same recoverable error when estree parser plugin is enabled.

The other commits are to fix the bugs detected by the new test runner.

In the future I will add more tests to estree plugin: For example, if the parsed AST does not have an "errors" key, it should not throw either when estree plugin is enabled.

@JLHwung JLHwung added PR: Spec Compliance 👓 A type of pull request used for our changelog categories pkg: parser area: estree labels Nov 19, 2020
@babel-bot
Copy link
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/32931/

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit c962cb3:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

@existentialism existentialism removed their assignment Dec 3, 2020
@nicolo-ribaudo nicolo-ribaudo merged commit 8478027 into babel:main Dec 3, 2020
Nicolò's ideal PR review order list automation moved this from To review to Done Dec 3, 2020
@nicolo-ribaudo nicolo-ribaudo deleted the fix-estree-throw branch December 3, 2020 08:36
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Mar 5, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: estree outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: parser PR: Spec Compliance 👓 A type of pull request used for our changelog categories
Development

Successfully merging this pull request may close these issues.

None yet

4 participants