File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
crates/wasmparser/src/validator
tests/local/missing-features/reference-types Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -2243,6 +2243,11 @@ where
22432243 Ok ( ( ) )
22442244 }
22452245 fn visit_ref_null ( & mut self , mut heap_type : HeapType ) -> Self :: Output {
2246+ if let Some ( ty) = RefType :: new ( true , heap_type) {
2247+ self . features
2248+ . check_ref_type ( ty)
2249+ . map_err ( |e| BinaryReaderError :: new ( e, self . offset ) ) ?;
2250+ }
22462251 self . resources
22472252 . check_heap_type ( & mut heap_type, self . offset ) ?;
22482253 let ty = ValType :: Ref (
Original file line number Diff line number Diff line change 2828(assert_invalid
2929 (module (func (block (result i31ref ) unreachable )))
3030 " heap types not supported without the gc feature" )
31+ (assert_invalid
32+ (module (func ref.null array drop ))
33+ " heap types not supported without the gc feature" )
You can’t perform that action at this time.
0 commit comments