Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(parser): [Babel8] Align error codes between Flow and TypeScript#13294

Merged
sosukesuzuki merged 3 commits intobabel:mainfrom
sosukesuzuki:align-error-codes
Aug 28, 2021
Merged

fix(parser): [Babel8] Align error codes between Flow and TypeScript#13294
sosukesuzuki merged 3 commits intobabel:mainfrom
sosukesuzuki:align-error-codes

Conversation

@sosukesuzuki
Copy link
Contributor

@sosukesuzuki sosukesuzuki commented May 11, 2021

Q                       A
Fixed Issues? N
Patch: Bug Fix? Y
Tests Added + Pass? Yes
License MIT

Errors with exactly the same message had different error codes, so align them.

@babel-bot
Copy link
Collaborator

babel-bot commented May 11, 2021

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

@codesandbox-ci
Copy link

codesandbox-ci bot commented May 11, 2021

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 5adf815:

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

existentialism
existentialism previously approved these changes May 11, 2021
@JLHwung
Copy link
Contributor

JLHwung commented May 11, 2021

The error code error.reasonCode is now part of API observable to users, I am afraid we can't ship this until next major release. We could add compatibility fallback in makeErrorTemplates and implement it behind process.env.BABEL_8_BREAKING.

@existentialism existentialism dismissed their stale review May 11, 2021 19:40

Forgot about how reasonCode's were constructed

@sosukesuzuki
Copy link
Contributor Author

Oh Okay, I'll fix

@sosukesuzuki sosukesuzuki changed the title parser: Align error codes between Flow and TypeScript fix(parser): [Babel8] Align error codes between Flow and TypeScript Aug 27, 2021
@sosukesuzuki
Copy link
Contributor Author

I had forgotten that this PR existed. I've pushed commits to address reviewed points now.

@sosukesuzuki
Copy link
Contributor Author

Can I merge this now?

@sosukesuzuki sosukesuzuki merged commit 64d116b into babel:main Aug 28, 2021
@sosukesuzuki sosukesuzuki deleted the align-error-codes branch August 28, 2021 15:13
@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 Nov 28, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 28, 2021
@nicolo-ribaudo nicolo-ribaudo added this to the v8.0.0 milestone Aug 8, 2023
@nicolo-ribaudo nicolo-ribaudo added PR: Internal (next major) 🏠 A type of pull request used for our changelog categories for next major release and removed babel 8 labels Aug 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: errors area: flow area: typescript outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: parser PR: Internal (next major) 🏠 A type of pull request used for our changelog categories for next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants