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 usage of lexical from swc_ecma_parser optional #7757

Conversation

gmcsorley-work
Copy link
Contributor

This PR makes lexical part of the default features for the swc_ecma_parser crate but allows it to be turned off to use BigInt for equivalent parsing of large numbers.

Description: As discussed in #7752, lexical contains a number of soundness issues but doesn't appear to be actively supported. Given the relatively low integration surface it seems reasonable to replace the usage of lexical with another package to avoid this issue. This does so in an optional fashion so that the decision can be made by the user which mechanism to use.

Related issue (if exists): #7752

@gmcsorley-work gmcsorley-work marked this pull request as ready for review August 4, 2023 16:12
@gmcsorley-work
Copy link
Contributor Author

Note that either this PR or #7758 should be accepted, but not both.

@kdy1
Copy link
Member

kdy1 commented Aug 6, 2023

Thank you! I'll close this in favor of #7758

@kdy1 kdy1 closed this Aug 6, 2023
@kdy1 kdy1 modified the milestones: Planned, v1.3.76 Aug 9, 2023
@swc-project swc-project locked as resolved and limited conversation to collaborators Sep 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants