summaryrefslogtreecommitdiff
path: root/test/binaryen.js/push-pop.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 /test/binaryen.js/push-pop.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 'test/binaryen.js/push-pop.js')
-rw-r--r--test/binaryen.js/push-pop.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/binaryen.js/push-pop.js b/test/binaryen.js/push-pop.js
index b182afbc8..1bc24963e 100644
--- a/test/binaryen.js/push-pop.js
+++ b/test/binaryen.js/push-pop.js
@@ -27,6 +27,7 @@ var func = module.addFunction("func", v, [],
module.push(module.f32.pop()),
module.push(module.f64.pop()),
module.push(module.v128.pop()),
+ module.push(module.anyref.pop()),
module.push(module.exnref.pop())
]
)
@@ -40,5 +41,6 @@ console.log("getExpressionInfo(i64.pop) = " + stringify(module.i64.pop()));
console.log("getExpressionInfo(f32.pop) = " + stringify(module.f32.pop()));
console.log("getExpressionInfo(f64.pop) = " + stringify(module.f64.pop()));
console.log("getExpressionInfo(v128.pop) = " + stringify(module.v128.pop()));
+console.log("getExpressionInfo(anyref.pop) = " + stringify(module.anyref.pop()));
console.log("getExpressionInfo(exnref.pop) = " + stringify(module.exnref.pop()));
console.log("getExpressionInfo(push) = " + stringify(module.push(module.i32.const(0))));