summaryrefslogtreecommitdiff
path: root/src/js/binaryen.js-post.js
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-05-22 13:19:47 -0700
committerGitHub <noreply@github.com>2020-05-22 13:19:47 -0700
commitbb0ff51597f254ab199f8ad5b63de7a4bbca2c17 (patch)
tree2932c64f443ec7a36385c0ac96e865d0a9d8c53b /src/js/binaryen.js-post.js
parentc193e5727d541ad04bb1601da92f2a86ae959cc8 (diff)
downloadbinaryen-bb0ff51597f254ab199f8ad5b63de7a4bbca2c17.tar.gz
binaryen-bb0ff51597f254ab199f8ad5b63de7a4bbca2c17.tar.bz2
binaryen-bb0ff51597f254ab199f8ad5b63de7a4bbca2c17.zip
Remove `Push` (#2867)
Push and Pop have been superseded by tuples for their original intended purpose of supporting multivalue. Pop is still used to represent block arguments for exception handling, but there are no plans to use Push for anything now or in the future.
Diffstat (limited to 'src/js/binaryen.js-post.js')
-rw-r--r--src/js/binaryen.js-post.js9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/js/binaryen.js-post.js b/src/js/binaryen.js-post.js
index 1902bddfa..8a2d60a2f 100644
--- a/src/js/binaryen.js-post.js
+++ b/src/js/binaryen.js-post.js
@@ -97,7 +97,6 @@ function initializeConstants() {
'BrOnExn',
'TupleMake',
'TupleExtract',
- 'Push',
'Pop'
].forEach(function(name) {
Module['ExpressionIds'][name] = Module[name + 'Id'] = Module['_Binaryen' + name + 'Id']();
@@ -2119,9 +2118,6 @@ function wrapModule(module, self) {
return Module['_BinaryenBrOnExn'](module, strToStack(label), strToStack(event_), exnref);
});
};
- self['push'] = function(value) {
- return Module['_BinaryenPush'](module, value);
- };
self['tuple'] = {
'make': function(elements) {
@@ -2869,11 +2865,6 @@ Module['getExpressionInfo'] = function(expr) {
'tuple': Module['_BinaryenTupleExtractGetTuple'](expr),
'index': Module['_BinaryenTupleExtractGetIndex'](expr)
};
- case Module['PushId']:
- return {
- 'id': id,
- 'value': Module['_BinaryenPushGetValue'](expr)
- };
default:
throw Error('unexpected id: ' + id);