summaryrefslogtreecommitdiff
path: root/src/tools/fuzzing/fuzzing.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-06-29 09:34:26 -0700
committerGitHub <noreply@github.com>2022-06-29 09:34:26 -0700
commit7f75427f7671562874a22981c9dcc4a8e223f48b (patch)
treebd3237d5b43197127e7a17c63fec3b9f5102b5f9 /src/tools/fuzzing/fuzzing.cpp
parent9dbe45780d8c78dbb49c208fe4505cd1624a98ac (diff)
downloadbinaryen-7f75427f7671562874a22981c9dcc4a8e223f48b.tar.gz
binaryen-7f75427f7671562874a22981c9dcc4a8e223f48b.tar.bz2
binaryen-7f75427f7671562874a22981c9dcc4a8e223f48b.zip
[Strings] Add string proposal types (#4755)
This starts to implement the Wasm Strings proposal https://github.com/WebAssembly/stringref/blob/main/proposals/stringref/Overview.md This just adds the types.
Diffstat (limited to 'src/tools/fuzzing/fuzzing.cpp')
-rw-r--r--src/tools/fuzzing/fuzzing.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/fuzzing/fuzzing.cpp b/src/tools/fuzzing/fuzzing.cpp
index c828c84d0..5489e7638 100644
--- a/src/tools/fuzzing/fuzzing.cpp
+++ b/src/tools/fuzzing/fuzzing.cpp
@@ -3091,6 +3091,11 @@ HeapType TranslateToFuzzReader::getSubType(HeapType type) {
case HeapType::data:
// TODO: nontrivial types as well.
return HeapType::data;
+ case HeapType::string:
+ case HeapType::stringview_wtf8:
+ case HeapType::stringview_wtf16:
+ case HeapType::stringview_iter:
+ WASM_UNREACHABLE("TODO: fuzz strings");
}
}
// TODO: nontrivial types as well.