Skip to content

Commit

Permalink
Fix i31.wast default table element assertions (#541)
Browse files Browse the repository at this point in the history
Copy-paste bug. Don't repeatedly assert the first element's value, but each element in the table.
  • Loading branch information
fitzgen committed Apr 23, 2024
1 parent 273c2ac commit cd8b5c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/core/gc/i31.wast
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@
)

(assert_return (invoke "get" (i32.const 0)) (i32.const 42))
(assert_return (invoke "get" (i32.const 0)) (i32.const 42))
(assert_return (invoke "get" (i32.const 0)) (i32.const 42))
(assert_return (invoke "get" (i32.const 1)) (i32.const 42))
(assert_return (invoke "get" (i32.const 2)) (i32.const 42))

(module $i31ref_of_global_global_initializer
(global $g0 (import "env" "g") i32)
Expand Down

0 comments on commit cd8b5c5

Please sign in to comment.