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
2243
2243
Ok ( ( ) )
2244
2244
}
2245
2245
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
+ }
2246
2251
self . resources
2247
2252
. check_heap_type ( & mut heap_type, self . offset ) ?;
2248
2253
let ty = ValType :: Ref (
Original file line number Diff line number Diff line change 28
28
(assert_invalid
29
29
(module (func (block (result i31ref ) unreachable )))
30
30
" 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