Skip to content

Commit d33d20c

Browse files
authored
Fuzzer: Remove assert on being in a function context before emitting RefAs (#8259)
We do not want to assert there: if we are in a global, the caller will find the RefAs and replace the entire value. That is, we have existing mechanisms to handle that, and the assert was making us crash instead.
1 parent 9ec87ba commit d33d20c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/tools/fuzzing/fuzzing.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3863,7 +3863,6 @@ Expression* TranslateToFuzzReader::makeBasicRef(Type type) {
38633863
case HeapType::noexn: {
38643864
auto null = builder.makeRefNull(heapType.getBasic(share));
38653865
if (!type.isNullable()) {
3866-
assert(funcContext);
38673866
return builder.makeRefAs(RefAsNonNull, null);
38683867
}
38693868
return null;

0 commit comments

Comments
 (0)