diff options
author | Alon Zakai <azakai@google.com> | 2024-02-23 09:24:54 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-23 09:24:54 -0800 |
commit | 2fc33e65fff4e6312fbcc3716b16a740fb3dce61 (patch) | |
tree | 51ca3be69fbf85a127d0516ace4399a5075872dd | |
parent | e3450ca714ac14a94f86fa7a8e8f84f414da15a5 (diff) | |
download | binaryen-2fc33e65fff4e6312fbcc3716b16a740fb3dce61.tar.gz binaryen-2fc33e65fff4e6312fbcc3716b16a740fb3dce61.tar.bz2 binaryen-2fc33e65fff4e6312fbcc3716b16a740fb3dce61.zip |
Fuzzer: Handle negative i31s (#6341)
-rwxr-xr-x | scripts/fuzz_opt.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/fuzz_opt.py b/scripts/fuzz_opt.py index 171a246d2..6705d7952 100755 --- a/scripts/fuzz_opt.py +++ b/scripts/fuzz_opt.py @@ -584,7 +584,7 @@ def fix_output(out): # 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)): |