summaryrefslogtreecommitdiff
path: root/src/wasm
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm')
-rw-r--r--src/wasm/wasm-type.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wasm/wasm-type.cpp b/src/wasm/wasm-type.cpp
index d1cdf6a81..7d51cc10e 100644
--- a/src/wasm/wasm-type.cpp
+++ b/src/wasm/wasm-type.cpp
@@ -199,14 +199,16 @@ Type Type::reinterpret() const {
}
FeatureSet Type::getFeatures() const {
- auto getSingleFeatures = [](Type t) {
+ auto getSingleFeatures = [](Type t) -> FeatureSet {
switch (t.getSingle()) {
case Type::v128:
return FeatureSet::SIMD;
+ case Type::funcref:
case Type::anyref:
+ case Type::nullref:
return FeatureSet::ReferenceTypes;
case Type::exnref:
- return FeatureSet::ExceptionHandling;
+ return FeatureSet::ReferenceTypes | FeatureSet::ExceptionHandling;
default:
return FeatureSet::MVP;
}