summaryrefslogtreecommitdiff
path: root/test/spec/ref_test.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/spec/ref_test.wast')
-rw-r--r--test/spec/ref_test.wast8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/spec/ref_test.wast b/test/spec/ref_test.wast
index 6b6369459..f30e27b6b 100644
--- a/test/spec/ref_test.wast
+++ b/test/spec/ref_test.wast
@@ -16,10 +16,10 @@
(table.set $ta (i32.const 0) (ref.null any))
(table.set $ta (i32.const 1) (ref.null struct))
(table.set $ta (i32.const 2) (ref.null none))
- (table.set $ta (i32.const 3) (i31.new (i32.const 7)))
+ (table.set $ta (i32.const 3) (ref.i31 (i32.const 7)))
(table.set $ta (i32.const 4) (struct.new_default $st))
(table.set $ta (i32.const 5) (array.new_default $at (i32.const 0)))
- (table.set $ta (i32.const 6) (extern.internalize (extern.externalize (i31.new (i32.const 0)))))
+ (table.set $ta (i32.const 6) (extern.internalize (extern.externalize (ref.i31 (i32.const 0)))))
(table.set $ta (i32.const 7) (extern.internalize (ref.null extern)))
(table.set $tf (i32.const 0) (ref.null nofunc))
@@ -28,8 +28,8 @@
(table.set $te (i32.const 0) (ref.null noextern))
(table.set $te (i32.const 1) (ref.null extern))
- (table.set $te (i32.const 2) (extern.externalize (i31.new (i32.const 0))))
- (table.set $te (i32.const 3) (extern.externalize (i31.new (i32.const 8))))
+ (table.set $te (i32.const 2) (extern.externalize (ref.i31 (i32.const 0))))
+ (table.set $te (i32.const 3) (extern.externalize (ref.i31 (i32.const 8))))
(table.set $te (i32.const 4) (extern.externalize (struct.new_default $st)))
(table.set $te (i32.const 5) (extern.externalize (ref.null any)))
)