From 1582c525a620b00f9a8c8a1134078e2665e40363 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Thu, 10 Oct 2019 09:29:54 -0700 Subject: Add push/pop support for anyref (#2376) This adds push/pop support for anyref. This also adds missing C API tests for push/pop. --- src/js/binaryen.js-post.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/js/binaryen.js-post.js') 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']); -- cgit v1.2.3