WebAssembly / WebAssembly/wabt
Better error on literal overflow
Open
Nobody has claimed this yet.
good-first-bug
- Dominant language
- C++
- Stars
- 8.1k
- Forks
- 827
- Avg merge
- 4d 6h
- Merged PRs (30d)
- 18
Description
See #1078. Example:
test.wast:1:17: error: invalid literal "11111111111"
(func i32.const 11111111111 drop)
^^^^^^^^^^^
Something like "literal out of range ..." would be a clearer message here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review issue #1078 for related context, then locate the code that emits the "invalid literal" diagnostic for the shown overflow example. Done means the same input reports a clearer out-of-range message instead.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100