Skip to content

parser: assertion failed: span.lo >= self.input.start_pos() && span.hi <= self.input.end_pos() #11344

@Boshen

Description

@Boshen

Describe the bug

  thread 'main' (2474) panicked at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/swc_ecma_parser-29.0.0/src/lexer/state.rs:77:9:
  assertion failed: span.lo >= self.input.start_pos() && span.hi <= self.input.end_pos()

Input code

Config

Link to the code that reproduces this issue

https://github.com/oxc-project/bench-javascript-parser-written-in-rust/actions/runs/19917146865/job/57098419563?pr=425

SWC Info output

No response

Expected behavior

parse

Actual behavior

No response

Version

28.0.0 -> 29.0.0

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions