diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/test/env.js | 4 | ||||
-rw-r--r-- | scripts/wasm2js.js | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/scripts/test/env.js b/scripts/test/env.js index 0eb3f06f4..4dcfa7d2b 100644 --- a/scripts/test/env.js +++ b/scripts/test/env.js @@ -1,5 +1,5 @@ - -export const FUNCTION_TABLE = []; +// This is the name by which the tests import the wasm table. +export const table = []; var tempRet0 = 0; diff --git a/scripts/wasm2js.js b/scripts/wasm2js.js index bc9ac6cbd..7bb8453bc 100644 --- a/scripts/wasm2js.js +++ b/scripts/wasm2js.js @@ -72,7 +72,7 @@ var WebAssembly = { // Additional imports asmLibraryArg['__tempMemory__'] = 0; // risky! // This will be replaced by the actual wasm2js code. - var exports = instantiate(asmLibraryArg, wasmMemory, wasmTable); + var exports = instantiate(asmLibraryArg, wasmMemory); return { 'exports': exports }; @@ -208,5 +208,3 @@ var asmLibraryArg = { }; var wasmMemory = new WebAssembly.Memory({ initial: 1 }); -var wasmTable = new WebAssembly.Table({ initial: 1 }); - |