swc/crates/swc_ecma_parser
Gareth McSorley e50cfde938
refactor(es/parser): Do not use lexical (#7758)
This PR replaces the current usage of lexical within the swc_ecma_parser
crate with equivalent parsing of large numbers using BigInt.

**Description:**

As discussed in
https://github.com/swc-project/swc/issues/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.

**Related issue:**

- Closes #7752
2023-08-06 20:29:17 +00:00
..
benches chore(es): Rename benchmarks (#4355) 2022-04-17 18:36:15 +00:00
examples doc(es/parser): Change file extension in TypeScript example (#6094) 2022-10-10 05:02:02 +00:00
scripts test(es): Update tsc test suite (#7323) 2023-04-24 14:59:19 +00:00
src refactor(es/parser): Do not use lexical (#7758) 2023-08-06 20:29:17 +00:00
tests build(cargo): Update rustc to 2023-07-03 (#7623) 2023-07-05 03:50:43 +00:00
.gitignore test(es): Update tsc test suite (#7323) 2023-04-24 14:59:19 +00:00
Cargo.toml refactor(es/parser): Do not use lexical (#7758) 2023-08-06 20:29:17 +00:00
colors.js chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00