summaryrefslogtreecommitdiff
path: root/src/js/binaryen.js-post.js
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-10-10 09:29:54 -0700
committerGitHub <noreply@github.com>2019-10-10 09:29:54 -0700
commit1582c525a620b00f9a8c8a1134078e2665e40363 (patch)
tree37a1925c05e8d42f863f07c38689da116d1399f9 /src/js/binaryen.js-post.js
parent13725e54f845ec84947130aaa888b4c11e53f9af (diff)
downloadbinaryen-1582c525a620b00f9a8c8a1134078e2665e40363.tar.gz
binaryen-1582c525a620b00f9a8c8a1134078e2665e40363.tar.bz2
binaryen-1582c525a620b00f9a8c8a1134078e2665e40363.zip
Add push/pop support for anyref (#2376)
This adds push/pop support for anyref. This also adds missing C API tests for push/pop.
Diffstat (limited to 'src/js/binaryen.js-post.js')
-rw-r--r--src/js/binaryen.js-post.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/js/binaryen.js-post.js b/src/js/binaryen.js-post.js
index b11d2769b..8f49b105c 100644
--- a/src/js/binaryen.js-post.js
+++ b/src/js/binaryen.js-post.js
@@ -1872,6 +1872,12 @@ function wrapModule(module, self) {
},
};
+ self['anyref'] = {
+ 'pop': function() {
+ return Module['_BinaryenPop'](module, Module['anyref']);
+ }
+ };
+
self['exnref'] = {
'pop': function() {
return Module['_BinaryenPop'](module, Module['exnref']);