summaryrefslogtreecommitdiff
path: root/test/binaryen.js/test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/binaryen.js/test.js')
-rw-r--r--test/binaryen.js/test.js16
1 files changed, 15 insertions, 1 deletions
diff --git a/test/binaryen.js/test.js b/test/binaryen.js/test.js
index 9f59c4a86..858454d3d 100644
--- a/test/binaryen.js/test.js
+++ b/test/binaryen.js/test.js
@@ -12,9 +12,23 @@ var input =
' )\n' +
')\n';
+console.log('input:');
+console.log(input);
+console.log('================');
+
var module = new Binaryen.AllocatingModule();
var parser = new Binaryen.SExpressionParser(input);
-var builder = new Binaryen.SExpressionWasmBuilder(module, parser.get_root(), false);
+
+console.log('s-expr dump:');
+parser.get_root().dump();
+var s_module = parser.get_root().getChild(0);
+console.log('================');
+
+var builder = new Binaryen.SExpressionWasmBuilder(module, s_module, true);
+
+console.log('module:');
+WasmPrinter.prototype.printModule(module);
+console.log('================');
var interface_ = new Binaryen.ShellExternalInterface();
var instance = new Binaryen.ModuleInstance(module, interface_);