Skip to content

Commit e2f04d6

Browse files
authored
[test][harness] Add table64 to the JS spectest definitions (#2017)
It's already present in spec interpreter and the lack of it causes some WPT tests to fail.
1 parent 3f3b4c2 commit e2f04d6

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

test/harness/async_index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ function reinitializeRegistry() {
118118
maximum: 20,
119119
element: "anyfunc"
120120
}),
121+
table64: new WebAssembly.Table({
122+
initial: 10,
123+
maximum: 20,
124+
element: "anyfunc",
125+
address: "i64"
126+
}),
121127
memory: new WebAssembly.Memory({ initial: 1, maximum: 2 })
122128
};
123129
let handler = {

test/harness/sync_index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +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"}),
127128
memory: new WebAssembly.Memory({initial: 1, maximum: 2})
128129
};
129130
let handler = {

0 commit comments

Comments
 (0)