summaryrefslogtreecommitdiff
path: root/src/tools/fuzzing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/fuzzing.h')
-rw-r--r--src/tools/fuzzing.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/fuzzing.h b/src/tools/fuzzing.h
index 91a808d32..fb83882c2 100644
--- a/src/tools/fuzzing.h
+++ b/src/tools/fuzzing.h
@@ -327,8 +327,10 @@ private:
options.push_back(type); // includes itself
switch (type.getSingle()) {
case Type::anyref:
+ if (wasm.features.hasExceptionHandling()) {
+ options.push_back(Type::exnref);
+ }
options.push_back(Type::funcref);
- options.push_back(Type::exnref);
// falls through
case Type::funcref:
case Type::exnref: