summaryrefslogtreecommitdiff
path: root/src/js/binaryen.js-post.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/binaryen.js-post.js')
-rw-r--r--src/js/binaryen.js-post.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/binaryen.js-post.js b/src/js/binaryen.js-post.js
index 6ecfefee8..645290478 100644
--- a/src/js/binaryen.js-post.js
+++ b/src/js/binaryen.js-post.js
@@ -2348,8 +2348,8 @@ function wrapModule(module, self = {}) {
self['getGlobal'] = function(name) {
return preserveStack(() => Module['_BinaryenGetGlobal'](module, strToStack(name)));
};
- self['addTable'] = function(table, initial, maximum) {
- return preserveStack(() => Module['_BinaryenAddTable'](module, strToStack(table), initial, maximum));
+ self['addTable'] = function(table, initial, maximum, type = Module['_BinaryenTypeFuncref']()) {
+ return preserveStack(() => Module['_BinaryenAddTable'](module, strToStack(table), initial, maximum, type));
}
self['getTable'] = function(name) {
return preserveStack(() => Module['_BinaryenGetTable'](module, strToStack(name)));