diff options
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/binaryen.js-post.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/js/binaryen.js-post.js b/src/js/binaryen.js-post.js index 955d80f1d..3bc0fa4a3 100644 --- a/src/js/binaryen.js-post.js +++ b/src/js/binaryen.js-post.js @@ -557,17 +557,20 @@ function wrapModule(module, self) { return Module['_BinaryenCall'](module, strToStack(name), i32sToStack(operands), operands.length, type); }); }; + // 'callIndirect', 'returnCall', 'returnCallIndirect' are deprecated and may + // be removed in a future release. Please use the the snake_case names + // instead. self['callIndirect'] = self['call_indirect'] = function(target, operands, params, results) { return preserveStack(function() { return Module['_BinaryenCallIndirect'](module, target, i32sToStack(operands), operands.length, params, results); }); }; - self['returnCall'] = function(name, operands, type) { + self['returnCall'] = self['return_call'] = function(name, operands, type) { return preserveStack(function() { return Module['_BinaryenReturnCall'](module, strToStack(name), i32sToStack(operands), operands.length, type); }); }; - self['returnCallIndirect'] = function(target, operands, params, results) { + self['returnCallIndirect'] = self['return_call_indirect'] = function(target, operands, params, results) { return preserveStack(function() { return Module['_BinaryenReturnCallIndirect'](module, target, i32sToStack(operands), operands.length, params, results); }); |