-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Remove local fork of acorn JS parser #11439
Comments
Hello, I think you wanna delete |
Yes, but also we have a local patch which contains functionality which we would like to preserve. I believe @RReverser has suggested some way to get the desired behaviour without the local patch. Thanks for the offer of help! |
Can I ask a question? |
Yeah it's quite hard to find the source change of Acorn, but it appears the built file was modified here emscripten/third_party/acorn/dist/acorn.js Lines 2770 to 2771 in 8c75547
FWIW my suggestion was the following: as you can see, the errors raised by Acorn have @TroyTae I think the easiest might be to just update Acorn code to latest upstream in Emscripten repo, and then look at the expected format vs retrieved one when running tests and wrap accordingly. |
It's also possible we can just replace acorn and all tests would pass - I think we may have removed an overly-strict test for the error format. Worth opening a PR with just that, and seeing test results. |
@RReverser Thank you! It seems history is lost after move directory 😅 @kripken Now I'm trying to do it. If we need some strict test, I'll write it :) |
We currently have a local fork of acorn in-tree, but it would be more elegant to simply install it via npm.
Apparently there is a local patch that upstream don't want but a suggested workaround exists #11435
The text was updated successfully, but these errors were encountered: