diff options
-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)): |