diff options
Diffstat (limited to 'test/binaryen.js/push-pop.js')
-rw-r--r-- | test/binaryen.js/push-pop.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/binaryen.js/push-pop.js b/test/binaryen.js/push-pop.js index 5064ed864..b182afbc8 100644 --- a/test/binaryen.js/push-pop.js +++ b/test/binaryen.js/push-pop.js @@ -1,3 +1,7 @@ +function assert(x) { + if (!x) throw 'error!'; +} + function cleanInfo(info) { var ret = {}; for (var x in info) { @@ -28,7 +32,7 @@ var func = module.addFunction("func", v, [], ) ) -module.validate(); +assert(module.validate()); console.log(module.emitText()); console.log("getExpressionInfo(i32.pop) = " + stringify(module.i32.pop())); |