Skip to content

Commit

Permalink
Update JS-test generation after WebAssembly#90 and WebAssembly#92
Browse files Browse the repository at this point in the history
"index" was renamed to "address". Without this change, all JS tests
generated from the core tests will fail.
  • Loading branch information
backes committed Oct 23, 2024
1 parent ade7380 commit c52a01c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interpreter/script/js.ml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ let spectest = {
global_f64: 666.6,
table: new WebAssembly.Table({initial: 10, maximum: 20, element: 'anyfunc'}),
table64: new WebAssembly.Table(
{initial: 10n, maximum: 20n, element: 'anyfunc', index: 'i64'}),
{initial: 10n, maximum: 20n, element: 'anyfunc', address: 'i64'}),
memory: new WebAssembly.Memory({initial: 1, maximum: 2}),
memory64: new WebAssembly.Memory({initial: 1n, maximum: 2n, index: 'i64'})
memory64: new WebAssembly.Memory({initial: 1n, maximum: 2n, address: 'i64'})
};

let handler = {
Expand Down

0 comments on commit c52a01c

Please sign in to comment.