WebAssembly / WebAssembly/wabt

Better error on literal overflow

Open
#1,080 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.