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

Commit 736bda2

Browse files
authored
[test] Fix table index encoding (#154)
The encoding of the table index in binary-leb128.wast is incorrect with the bulk-memory extensions, see WebAssembly/bulk-memory-operations#153. I saw and fixed the issue first in the reference types proposal (see WebAssembly/reference-types#95), but apparently it also exists here.
1 parent ec4bcea commit 736bda2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/core/binary-leb128.wast

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@
3333
"\00asm" "\01\00\00\00"
3434
"\04\04\01" ;; Table section with 1 entry
3535
"\70\00\00" ;; no max, minimum 0, funcref
36-
"\09\07\01" ;; Element section with 1 entry
36+
"\09\09\01" ;; Element section with 1 entry
37+
"\02" ;; Element with explicit table index
3738
"\80\00" ;; Table index 0, encoded with 2 bytes
38-
"\41\00\0b\00" ;; (i32.const 0) with no elements
39+
"\41\00\0b\00\00" ;; (i32.const 0) with no elements
3940
)
4041
(module binary
4142
"\00asm" "\01\00\00\00"

0 commit comments

Comments
 (0)