summaryrefslogtreecommitdiff
path: root/src/wasm/wasm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm.cpp')
-rw-r--r--src/wasm/wasm.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp
index c4f02128e..4c30a4e32 100644
--- a/src/wasm/wasm.cpp
+++ b/src/wasm/wasm.cpp
@@ -964,8 +964,7 @@ void RefI31::finalize() {
if (value->type == Type::unreachable) {
type = Type::unreachable;
} else {
- assert(type.isRef() && type.getHeapType().isBasic() &&
- type.getHeapType().getBasic(Unshared) == HeapType::i31);
+ assert(type.isRef() && type.getHeapType().isMaybeShared(HeapType::i31));
}
}