summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/js/wasm.js-post.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/wasm.js-post.js b/src/js/wasm.js-post.js
index e7d461642..cc1f29c10 100644
--- a/src/js/wasm.js-post.js
+++ b/src/js/wasm.js-post.js
@@ -290,7 +290,7 @@ function integrateWasmJS(Module) {
// import table
if (!env['table']) {
- var TABLE_SIZE = 1024; // TODO
+ var TABLE_SIZE = Module['wasmTableSize'] || 1024;
if (typeof WebAssembly === 'object' && typeof WebAssembly.Table === 'function') {
env['table'] = new WebAssembly.Table({ initial: TABLE_SIZE, maximum: TABLE_SIZE, element: 'anyfunc' });
} else {