summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tools/fuzzing/heap-types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/fuzzing/heap-types.cpp b/src/tools/fuzzing/heap-types.cpp
index 5c948e44d..33a92b796 100644
--- a/src/tools/fuzzing/heap-types.cpp
+++ b/src/tools/fuzzing/heap-types.cpp
@@ -461,7 +461,7 @@ struct HeapTypeGeneratorImpl {
case HeapType::stringview_iter:
break;
case HeapType::none:
- if (rand.oneIn(10)) {
+ if (features.hasStrings() && rand.oneIn(10)) {
candidates.push_back(HeapType::stringview_wtf8);
candidates.push_back(HeapType::stringview_wtf16);
candidates.push_back(HeapType::stringview_iter);