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
Materialize the class features in @babel/parser
.
#13175
Materialize the class features in @babel/parser
.
#13175
Conversation
@@ -2,7 +2,7 @@ | |||
"type": "File", | |||
"start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, | |||
"errors": [ | |||
"SyntaxError: `new.target` can only be used in functions. or class properties (1:8)" | |||
"SyntaxError: `new.target` can only be used in functions or class properties. (1:8)" |
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.
Also fixed unexpected .
in the error messages lol.
Can you remove the plugins from the moved |
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/45401/ |
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 e703c47:
|
@@ -1,3 +0,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.
This commit is created from https://gist.github.com/JLHwung/970c52d63fd3b5ee14e3ada1cd227d33
4d58f86
to
654ab5a
Compare
f071f02
to
92baa7f
Compare
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.
(There is a prettier error)
92baa7f
to
4864069
Compare
@nicolo-ribaudo fixed in 00f84db |
@@ -0,0 +1,63 @@ | |||
{ |
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.
oh I would of expected these tests to be duplicated given they used to throw with the enable parser plugin error (and thus wouldn't be testing the syntax but the plugin), but I guess they are unique actually? Like we would of had a test for asi that didn't throw as well, so you could delete this one.
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.
🎉
* feat: materialize class features * chore: move testcases to es2022 * chore: update test fixtures * chore: remove classPr\w+ from options.json * chore: remove empty options.json * update flow test allowlist * update typescript allowlist
* feat: materialize class features * chore: move testcases to es2022 * chore: update test fixtures * chore: remove classPr\w+ from options.json * chore: remove empty options.json * update flow test allowlist * update typescript allowlist
* feat: materialize class features * chore: move testcases to es2022 * chore: update test fixtures * chore: remove classPr\w+ from options.json * chore: remove empty options.json * update flow test allowlist * update typescript allowlist
* feat: materialize class features * chore: move testcases to es2022 * chore: update test fixtures * chore: remove classPr\w+ from options.json * chore: remove empty options.json * update flow test allowlist * update typescript allowlist
* feat: materialize class features * chore: move testcases to es2022 * chore: update test fixtures * chore: remove classPr\w+ from options.json * chore: remove empty options.json * update flow test allowlist * update typescript allowlist
* feat: materialize class features * chore: move testcases to es2022 * chore: update test fixtures * chore: remove classPr\w+ from options.json * chore: remove empty options.json * update flow test allowlist * update typescript allowlist
The following parser plugins will be materialized in Babel 7.14
classProperties
classPrivateProperties
classPrivateMethods