Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit bcf4834

Browse files
authored
Fix some function lengths in the test suite (#45)
These tests appear adapted with memory64 with overlong LEB-encodings but when merged with the upstream spec test suite the function length is too short. By ensuring the function length is correct it ensures that the only error in the module is the overlong LEB encoding.
1 parent b52270d commit bcf4834

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/core/binary.wast

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@
487487
"\05\03\01\00\01" ;; Memory section
488488
"\0a\17\01" ;; Code section
489489
;; function 0
490-
"\0f\01\01" ;; local type count
490+
"\15\01\01" ;; local type count
491491
"\7f" ;; i32
492492
"\41\00" ;; i32.const 0
493493
"\28" ;; i32.load
@@ -544,7 +544,7 @@
544544
"\05\03\01\00\01" ;; Memory section
545545
"\0a\16\01" ;; Code section
546546
;; function 0
547-
"\10\01\01" ;; local type count
547+
"\14\01\01" ;; local type count
548548
"\7f" ;; i32
549549
"\41\00" ;; i32.const 0
550550
"\41\03" ;; i32.const 3
@@ -624,7 +624,7 @@
624624
"\05\03\01\00\01" ;; Memory section
625625
"\0a\15\01" ;; Code section
626626
;; function 0
627-
"\0e\01\01" ;; local type count
627+
"\13\01\01" ;; local type count
628628
"\7f" ;; i32
629629
"\41\00" ;; i32.const 0
630630
"\28" ;; i32.load
@@ -643,7 +643,7 @@
643643
"\05\03\01\00\01" ;; Memory section
644644
"\0a\15\01" ;; Code section
645645
;; function 0
646-
"\0e\01\01" ;; local type count
646+
"\13\01\01" ;; local type count
647647
"\7f" ;; i32
648648
"\41\00" ;; i32.const 0
649649
"\28" ;; i32.load
@@ -737,7 +737,7 @@
737737
"\05\03\01\00\01" ;; Memory section
738738
"\0a\16\01" ;; Code section
739739
;; function 0
740-
"\0f\01\01" ;; local type count
740+
"\14\01\01" ;; local type count
741741
"\7f" ;; i32
742742
"\41\00" ;; i32.const 0
743743
"\41\03" ;; i32.const 3
@@ -757,7 +757,7 @@
757757
"\0a\16\01" ;; Code section
758758

759759
;; function 0
760-
"\0f\01\01" ;; local type count
760+
"\14\01\01" ;; local type count
761761
"\7f" ;; i32
762762
"\41\00" ;; i32.const 0
763763
"\41\03" ;; i32.const 3

0 commit comments

Comments
 (0)