Skip to content

Commit f655aac

Browse files
committed
fix
1 parent f6421b5 commit f655aac

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/tools/execution-results.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,8 @@ struct ExecutionResults {
487487
// This should be ignored and not compared with, as optimizations can
488488
// change whether a host limit is reached.
489489
ignore = true;
490+
} catch (const WasmException&) {
491+
std::cout << "[exception thrown]\n";
490492
}
491493
}
492494

test/lit/exec/start.wast

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
;; CHECK: [fuzz-exec] export run
1818
;; CHECK-NEXT: [fuzz-exec] note result: run => 1
1919
;; CHECK-NEXT: [trap unreachable]
20+
;; CHECK-NEXT: [exception thrown]
2021
(func $run (export "run") (result i32)
22+
;; Due to limitations of the auto-updater, the trap and exception from the
23+
;; following two modules gets logged here. (There is at least no
24+
;; ambiguity: we first see that we finished ok and returned a value.)
2125
(global.get $global)
2226
)
2327
)

0 commit comments

Comments
 (0)