Skip to content

Commit cd8b5c5

Browse files
authored
Fix i31.wast default table element assertions (WebAssembly#541)
Copy-paste bug. Don't repeatedly assert the first element's value, but each element in the table.
1 parent 273c2ac commit cd8b5c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/core/gc/i31.wast

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@
134134
)
135135

136136
(assert_return (invoke "get" (i32.const 0)) (i32.const 42))
137-
(assert_return (invoke "get" (i32.const 0)) (i32.const 42))
138-
(assert_return (invoke "get" (i32.const 0)) (i32.const 42))
137+
(assert_return (invoke "get" (i32.const 1)) (i32.const 42))
138+
(assert_return (invoke "get" (i32.const 2)) (i32.const 42))
139139

140140
(module $i31ref_of_global_global_initializer
141141
(global $g0 (import "env" "g") i32)

0 commit comments

Comments
 (0)