From 8b512dd9d3fdfc54f94a099d4d03dfe3fb06284d Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Fri, 10 Nov 2023 14:11:12 -0800 Subject: [PATCH] Fix off-by-one length in binary-gc.wast This avoids having two binary encoding errors which makes testing that a parser caught the expected error difficult. --- test/core/gc/binary-gc.wast | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/core/gc/binary-gc.wast b/test/core/gc/binary-gc.wast index 52cf02ace..589573f2c 100644 --- a/test/core/gc/binary-gc.wast +++ b/test/core/gc/binary-gc.wast @@ -2,7 +2,7 @@ (module binary "\00asm" "\01\00\00\00" "\01" ;; Type section id - "\05" ;; Type section length + "\04" ;; Type section length "\01" ;; Types vector length "\5e" ;; Array type, -0x22 "\78" ;; Storage type: i8 or -0x08