Skip to content

Commit 7f22ba5

Browse files
authored
[test] Remove br_table binary test (#1205)
This test doesn't really test what it says: the br_table is consumed correctly, and instead the `end` instruction is missing. This has caused various issues in decoders (see issue #1170) as well as requiring changing the error message in future proposals (e.g. bulk memory).
1 parent 2a43534 commit 7f22ba5

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

test/core/binary.wast

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -736,28 +736,6 @@
736736
"\0b\0b\0b" ;; end
737737
)
738738

739-
;; 2 br_table target declared, 1 given
740-
(assert_malformed
741-
(module binary
742-
"\00asm" "\01\00\00\00"
743-
"\01\04\01" ;; type section
744-
"\60\00\00" ;; type 0
745-
"\03\02\01\00" ;; func section
746-
"\0a\12\01" ;; code section
747-
"\10\00" ;; func 0
748-
"\02\40" ;; block 0
749-
"\41\01" ;; condition of if 0
750-
"\04\40" ;; if 0
751-
"\41\01" ;; index of br_table element
752-
"\0e\02" ;; br_table with inconsistent target count (2 declared, 1 given)
753-
"\00" ;; break depth 0
754-
;; "\01" ;; break depth 1 (missed)
755-
"\02" ;; break depth for default
756-
"\0b\0b\0b" ;; end
757-
)
758-
"unexpected end of section or function"
759-
)
760-
761739
;; 1 br_table target declared, 2 given
762740
(assert_malformed
763741
(module binary

0 commit comments

Comments
 (0)