Skip to content

Commit

Permalink
[test] Fix JS harness and binary test (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
gahaas authored May 20, 2020
1 parent f23154e commit 8dd9a90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions interpreter/script/js.ml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ let spectest = {
externref: externref,
is_externref: is_externref,
is_funcref: is_funcref,
eq_externref: eq_externref,
eq_funcref: eq_funcref,
print: console.log.bind(console),
print_i32: console.log.bind(console),
print_i32_f32: console.log.bind(console),
Expand Down
5 changes: 3 additions & 2 deletions test/core/binary-leb128.wast
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@
"\00asm" "\01\00\00\00"
"\04\04\01" ;; Table section with 1 entry
"\70\00\00" ;; no max, minimum 0, funcref
"\09\07\01" ;; Element section with 1 entry
"\09\09\01" ;; Element section with 1 entry
"\02" ;; Element with explicit table index
"\80\00" ;; Table index 0, encoded with 2 bytes
"\41\00\0b\00" ;; (i32.const 0) with no elements
"\41\00\0b\00\00" ;; (i32.const 0) with no elements
)
(module binary
"\00asm" "\01\00\00\00"
Expand Down

0 comments on commit 8dd9a90

Please sign in to comment.