We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 310a4e9 commit 48c96e4Copy full SHA for 48c96e4
src/wasm/wasm-validator.cpp
@@ -2903,7 +2903,9 @@ void FunctionValidator::visitFunction(Function* curr) {
2903
"Multivalue function results (multivalue is not enabled)");
2904
}
2905
FeatureSet features;
2906
- // Check for things like having a rec group with GC enabled.
+ // Check for things like having a rec group with GC enabled. The type we're
2907
+ // checking is a reference type even if this an MVP function type, so ignore
2908
+ // the reference types feature here.
2909
features |=
2910
(Type(curr->type, Nullable).getFeatures() & ~FeatureSet::ReferenceTypes);
2911
for (const auto& param : curr->getParams()) {
0 commit comments