Skip to content

Commit eb6f165

Browse files
authored
[test][harness] Fix table64 in the JS spectest definitions (#2172)
* Update async_index.js * Update sync_index.js
1 parent ee70f77 commit eb6f165

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

test/harness/async_index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ function reinitializeRegistry() {
119119
element: "anyfunc"
120120
}),
121121
table64: new WebAssembly.Table({
122-
initial: 10,
123-
maximum: 20,
122+
initial: 10n,
123+
maximum: 20n,
124124
element: "anyfunc",
125125
address: "i64"
126126
}),

test/harness/sync_index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function reinitializeRegistry() {
124124
global_f32: 666.6,
125125
global_f64: 666.6,
126126
table: new WebAssembly.Table({initial: 10, maximum: 20, element: 'anyfunc'}),
127-
table64: new WebAssembly.Table({initial: 10, maximum: 20, element: 'anyfunc', address: "i64"}),
127+
table64: new WebAssembly.Table({initial: 10n, maximum: 20n, element: 'anyfunc', address: "i64"}),
128128
memory: new WebAssembly.Memory({initial: 1, maximum: 2})
129129
};
130130
let handler = {

0 commit comments

Comments
 (0)