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
should allow duplicate __proto__ keys in patterns #6705
Comments
|
If anyone wants to work on this issue, here are some info 🙂 This parser error is thrown by the
As a good first step, it's enought to allow it in the "easy" case, when it's followed by If you have a clever idea (I don't have it yet 😅) to also fix the "hard" case, please do it! Note that the method is redefined in packages/babel-parser/src/plugins/estree.js. The files inside the If you don't know how to clone Babel, follow these steps: (you need to have
|
@nicolo-ribaudo maybe you can help. I tried running tests, using |
Does |
@awave1 If you have questions on building babel, I suggest to join our slack room for help. It is more convenient to communicate and we could keep this thread more focused. |
Note that #10532 only fixes the "simple case" of #6705 (comment) |
Hi @nicolo-ribaudo can you please assign this issue to me . I would like to contribute on this one |
How's progress going? Should I take a look? |
@mk-pmb Sure, you can also pair with @biddwan09 to see if they has come up with idea towards a solution. |
From a cursory look, for the hard case it seems we need to establish a mechanism to bubble up annotations, marking parts of the AST as tainted and carrying a todo list of what needs to be checked as soon as we know enough context. I'll need to read more about how our parser works, this will take a while. |
Original issue submitted by @gsathya in #5145
Input Code
Babel Configuration (.babelrc, package.json, cli command)
presets - latest
Expected Behavior
No error
Current Behavior
Error:
Redefinition of __proto__ property
Possible Solution
Context
Your Environment
The text was updated successfully, but these errors were encountered: