From cd8b5c503a13e35e6eba5f514e89b6054ec83a0a Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Tue, 23 Apr 2024 15:58:01 -0700 Subject: [PATCH] Fix i31.wast default table element assertions (#541) Copy-paste bug. Don't repeatedly assert the first element's value, but each element in the table. --- test/core/gc/i31.wast | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/core/gc/i31.wast b/test/core/gc/i31.wast index 1d98abb65..748565045 100644 --- a/test/core/gc/i31.wast +++ b/test/core/gc/i31.wast @@ -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)