Closed
Bug 1803036
Opened 3 years ago
Closed 3 years ago
Some TokenStream errors have poor location information
Categories
(Core :: JavaScript Engine, defect, P1)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
109 Branch
| Tracking | Status | |
|---|---|---|
| firefox109 | --- | fixed |
People
(Reporter: tcampbell, Assigned: tcampbell)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Parsing things like 1__X will throw a syntax error for the repeated underscores, but the location error will be on the X rather than the underscore.
This is due to a few places in TokenStream not calling ungetCodeUnit in error paths when using getCodeUnit instead of peekCodeUnit.
| Assignee | ||
Comment 1•3 years ago
|
||
When reporting errors for invalid numeric separators, we should try to point at
the separator character rather than what follows. This patch adds a few calls to
ungetCodeUnit, similar to other error paths in the TokenStream code.
Updated•3 years ago
|
Comment 2•3 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 3 years ago
status-firefox109:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•