summaryrefslogtreecommitdiff
path: root/test/lit/exec/host-limit.wast
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-10-23 10:17:13 -0700
committerGitHub <noreply@github.com>2024-10-23 10:17:13 -0700
commitdcc70bbfb16c2f8fce29dad94d80d1b78123655f (patch)
tree05db3b38ea848cef1010eac458549f012342b2fa /test/lit/exec/host-limit.wast
parent0d9b7508e5de1ca7befef493ed3e357b8a5613a1 (diff)
downloadbinaryen-dcc70bbfb16c2f8fce29dad94d80d1b78123655f.tar.gz
binaryen-dcc70bbfb16c2f8fce29dad94d80d1b78123655f.tar.bz2
binaryen-dcc70bbfb16c2f8fce29dad94d80d1b78123655f.zip
[EH] Fuzz throws from JS (#7027)
We already generated (throw ..) instructions in wasm, but it makes sense to model throws from outside as well, as they cross the module boundary. This adds a new fuzzer import to the generated modules, "throw", that just does a throw from JS etc. Also be more precise about handling fuzzing-support imports in fuzz-exec: we now check that logging functions start with "log*" and error otherwise (this check is now needed given we have "throw", which is not logging). Also fix a minor issue with name conflicts for logging functions by using getValidFunctionName for them, both for logging and for throw.
Diffstat (limited to 'test/lit/exec/host-limit.wast')
-rw-r--r--test/lit/exec/host-limit.wast2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lit/exec/host-limit.wast b/test/lit/exec/host-limit.wast
index e64a47d8a..ba5087f69 100644
--- a/test/lit/exec/host-limit.wast
+++ b/test/lit/exec/host-limit.wast
@@ -9,7 +9,7 @@
(module
(type $type$0 (array i8))
- (import "fuzzing-support" "log" (func $log (param i32)))
+ (import "fuzzing-support" "log-i32" (func $log (param i32)))
(global $global (mut (ref $type$0)) (array.new_default $type$0
(i32.const -1)