diff --git a/scripts/fuzz_opt.py b/scripts/fuzz_opt.py index bf0892be681..3e41356477e 100755 --- a/scripts/fuzz_opt.py +++ b/scripts/fuzz_opt.py @@ -2223,13 +2223,14 @@ def do_run(self, vm, js, wasm): # must also remove the specific trap, as Binaryen can change # that. line = 'TRAP' - elif 'wasm://' in line or '()' in line: + elif line.startswith(' at '): # This is part of a stack trace like # # at wasm://wasm/12345678:wasm-function[42]:0x123 # at () + # at file.js # - # Ignore it, as traces differ based on optimizations. + # Ignore it, as details of traces differ based on optimizations. continue cleaned.append(line) return '\n'.join(cleaned)