mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
fed8ff8753
Closes out remaining spec compliance gaps in the lexer, Regex vs Division cases, `>>` cases, + many more. Fully passes on Test262, All Typescript tests, Oxc tests, SWC tests, VSCode (codebase), And 1_000 machine hours of differential fuzzing; Confidence is high that it's either 'correct' or very close. This PR specifically needs AI Disclosure in both finding and fixing the cases now because the bitwise logic is complex; Something that I'll start addressing once 'correctness' is locked in (and performance). --------- Co-authored-by: overlookmotel <theoverlookmotel@gmail.com>
Oxc Lexer
A spec compliant standalone lexer for JS/JSX/TS.
Overview
- Test262 compliant.
- TS/JSX Working
- UTF-8 validation costs 0.15CPB (Cycles per byte), optional parameter.
- SIMD in x86_64 AVX2, Scalar for every other platform currently (in progress).
- Regex vs Division cases should be handled even in pathological cases.