summaryrefslogtreecommitdiff
path: root/test/spec/ref_cast.wast
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-05-23 10:38:00 -0700
committerGitHub <noreply@github.com>2023-05-23 10:38:00 -0700
commite8ac658a5db2fadc93c3d317d465eed253e191ed (patch)
tree29a02aa1bea161be7c25713a5ae435f708b42b87 /test/spec/ref_cast.wast
parent5beebc6b249c6393e0dbf69f0ec2374eca5d387b (diff)
downloadbinaryen-e8ac658a5db2fadc93c3d317d465eed253e191ed.tar.gz
binaryen-e8ac658a5db2fadc93c3d317d465eed253e191ed.tar.bz2
binaryen-e8ac658a5db2fadc93c3d317d465eed253e191ed.zip
Revert "Update br_on_cast binary and text format (#5734)" (#5740)
This reverts commit b7b1d0df29df14634d2c680d1d2c351b624b4fbb. See comment at the end of #5734: It turns out that dropping the old opcodes causes problems for current users, so let's revert this for now, and later we can figure out how best to do the update.
Diffstat (limited to 'test/spec/ref_cast.wast')
-rw-r--r--test/spec/ref_cast.wast8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/spec/ref_cast.wast b/test/spec/ref_cast.wast
index 8f7e3eb7f..f1cfbe24b 100644
--- a/test/spec/ref_cast.wast
+++ b/test/spec/ref_cast.wast
@@ -95,7 +95,7 @@
(drop
(block $l (result (ref struct))
(drop
- (br_on_cast $l anyref (ref struct) (struct.new $t0))
+ (br_on_cast $l struct (struct.new $t0))
)
(return (i32.const 0))
)
@@ -107,7 +107,7 @@
(drop
(block $l (result (ref null struct))
(drop
- (br_on_cast $l anyref structref (ref.null none))
+ (br_on_cast $l null struct (ref.null none))
)
(return (i32.const 0))
)
@@ -119,7 +119,7 @@
(drop
(block $l (result (ref struct))
(drop
- (br_on_cast_fail $l anyref (ref struct) (struct.new $t0))
+ (br_on_cast_fail $l struct (struct.new $t0))
)
(return (i32.const 0))
)
@@ -131,7 +131,7 @@
(drop
(block $l (result (ref struct))
(drop
- (br_on_cast_fail $l anyref structref (ref.null none))
+ (br_on_cast_fail $l null struct (ref.null none))
)
(return (i32.const 0))
)