summaryrefslogtreecommitdiff
path: root/test/heap-types.wast.fromBinary
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2022-08-26 12:11:29 -0700
committerGitHub <noreply@github.com>2022-08-26 12:11:29 -0700
commit9d20a4e129dc6666f873d84566ea504dfc46ccdc (patch)
tree99be367933aaddeffa4805f0493cb84d01c0d5a0 /test/heap-types.wast.fromBinary
parent3777624e19f22a6eb80d995408329d789593e427 (diff)
downloadbinaryen-9d20a4e129dc6666f873d84566ea504dfc46ccdc.tar.gz
binaryen-9d20a4e129dc6666f873d84566ea504dfc46ccdc.tar.bz2
binaryen-9d20a4e129dc6666f873d84566ea504dfc46ccdc.zip
Make `i31ref` and `dataref` nullable (#4843)
Match the latest version of the GC spec. This change does not depend on V8 changing its interpretation of the shorthands because we are still temporarily not emitting the binary shorthands, but all Binaryen users will have to update their interpretations along with this change if they use the text or binary shorthands.
Diffstat (limited to 'test/heap-types.wast.fromBinary')
-rw-r--r--test/heap-types.wast.fromBinary8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/heap-types.wast.fromBinary b/test/heap-types.wast.fromBinary
index 803908b19..e8d96de24 100644
--- a/test/heap-types.wast.fromBinary
+++ b/test/heap-types.wast.fromBinary
@@ -219,8 +219,8 @@
(local $y anyref)
(local $z anyref)
(local $temp-func funcref)
- (local $temp-data (ref null data))
- (local $temp-i31 (ref null i31))
+ (local $temp-data dataref)
+ (local $temp-i31 i31ref)
(block $label$1
(local.set $z
(br_on_null $label$1
@@ -239,7 +239,7 @@
)
)
(drop
- (block $label$3 (result (ref null data))
+ (block $label$3 (result dataref)
(local.set $y
(br_on_data $label$3
(local.get $x)
@@ -249,7 +249,7 @@
)
)
(drop
- (block $label$4 (result (ref null i31))
+ (block $label$4 (result i31ref)
(local.set $y
(br_on_i31 $label$4
(local.get $x)