Skip to content

Panic byte index 7 is not a char boundary in oxc_span/src/span/mod.rs #4887

@qarmin

Description

@qarmin

File content(at the bottom should be attached raw, not formatted file - github removes some non-printable characters, so copying from here may not work):

let[f, a]=p

command

timeout -v 100 oxlint -D all -D nursery --import-plugin --jsdoc-plugin --jest-plugin --vitest-plugin --jsx-a11y-plugin --nextjs-plugin --react-perf-plugin TEST___FILE.js --fix

cause this

thread '<unnamed>' panicked at crates/oxc_span/src/span/mod.rs:315:21:
byte index 7 is not a char boundary; it is inside '\u{a0}' (bytes 6..8) of `let[f, a]=p`
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

##### Automatic Fuzzer note, output status "None", output signal "Some(6)"

compressed.zip

Metadata

Metadata

Assignees

Labels

A-linterArea - LinterC-bugCategory - Buggood first issueExperience Level - Good for newcomers

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions