diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2022-08-26 12:11:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-26 12:11:29 -0700 |
commit | 9d20a4e129dc6666f873d84566ea504dfc46ccdc (patch) | |
tree | 99be367933aaddeffa4805f0493cb84d01c0d5a0 /test/heap-types.wast.fromBinary.noDebugInfo | |
parent | 3777624e19f22a6eb80d995408329d789593e427 (diff) | |
download | binaryen-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.noDebugInfo')
-rw-r--r-- | test/heap-types.wast.fromBinary.noDebugInfo | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/heap-types.wast.fromBinary.noDebugInfo b/test/heap-types.wast.fromBinary.noDebugInfo index eb697b12d..fefec450a 100644 --- a/test/heap-types.wast.fromBinary.noDebugInfo +++ b/test/heap-types.wast.fromBinary.noDebugInfo @@ -219,8 +219,8 @@ (local $1 anyref) (local $2 anyref) (local $3 funcref) - (local $4 (ref null data)) - (local $5 (ref null i31)) + (local $4 dataref) + (local $5 i31ref) (block $label$1 (local.set $2 (br_on_null $label$1 @@ -239,7 +239,7 @@ ) ) (drop - (block $label$3 (result (ref null data)) + (block $label$3 (result dataref) (local.set $1 (br_on_data $label$3 (local.get $0) @@ -249,7 +249,7 @@ ) ) (drop - (block $label$4 (result (ref null i31)) + (block $label$4 (result i31ref) (local.set $1 (br_on_i31 $label$4 (local.get $0) |