diff options
Diffstat (limited to 'test/binaryen.js')
-rw-r--r-- | test/binaryen.js/kitchen-sink.js | 10 | ||||
-rw-r--r-- | test/binaryen.js/kitchen-sink.js.txt | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/binaryen.js/kitchen-sink.js b/test/binaryen.js/kitchen-sink.js index 54fa9abd8..4e40adb17 100644 --- a/test/binaryen.js/kitchen-sink.js +++ b/test/binaryen.js/kitchen-sink.js @@ -941,6 +941,15 @@ function test_for_each() { module.dispose(); } +function test_expression_info() { + module = new Binaryen.Module(); + + // Issue #2392 + console.log("getExpressionInfo(memory.grow)=" + JSON.stringify(Binaryen.getExpressionInfo(module.memory.grow(1)))); + + module.dispose(); +} + function main() { test_types(); test_features(); @@ -954,6 +963,7 @@ function main() { test_parsing(); test_internals(); test_for_each(); + test_expression_info(); } main(); diff --git a/test/binaryen.js/kitchen-sink.js.txt b/test/binaryen.js/kitchen-sink.js.txt index ea2ff9d0c..1e6a9df92 100644 --- a/test/binaryen.js/kitchen-sink.js.txt +++ b/test/binaryen.js/kitchen-sink.js.txt @@ -9719,3 +9719,5 @@ sizeof Literal: 24 (nop) ) ) + +getExpressionInfo(memory.grow)={"id":20,"type":1,"op":1,"nameOperand":"","operands":[1]} |