Functions§
- parse
- Parse JS source text.
Always parses in module mode: oxc handles plain scripts (no import/export)
correctly in module mode too —
program.bodysimply contains no import/export statements. This lets the Lowerer read import/export directly from the AST instead of pre-scanning the raw source text. - parse_
with_ name - Parse JS source text, with a debug name for diagnostics.