Skip to content

Commit

Permalink
Fuzzer: Handle negative i31s (WebAssembly#6341)
Browse files Browse the repository at this point in the history
  • Loading branch information
kripken authored and radekdoulik committed Jul 12, 2024
1 parent 447ee82 commit b606e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/fuzz_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ def fix_double(x):

# JS prints i31 as just a number, so change "i31ref(N)" (which C++ emits)
# to "N".
out = re.sub(r'i31ref\((\d+)\)', r'\1', out)
out = re.sub(r'i31ref\((-?\d+)\)', r'\1', out)

lines = out.splitlines()
for i in range(len(lines)):
Expand Down

0 comments on commit b606e83

Please sign in to comment.