Nick Fitzgerald
3 months ago
committed by
GitHub
2 changed files with 13 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||
(module |
|||
(func (export "get_u-null") (result i32) |
|||
(i31.get_u (ref.null i31)) |
|||
) |
|||
(func (export "get_s-null") (result i32) |
|||
(i31.get_u (ref.null i31)) |
|||
) |
|||
) |
|||
|
|||
(assert_trap (invoke "get_u-null") "null i31 reference") |
|||
(assert_trap (invoke "get_s-null") "null i31 reference") |
Loading…
Reference in new issue