summaryrefslogtreecommitdiff
path: root/test/binaryen.js/emit_asmjs.js
diff options
context:
space:
mode:
authorDaniel Wirtz <dcode@dcode.io>2017-11-22 18:35:45 +0100
committerAlon Zakai <alonzakai@gmail.com>2017-11-22 09:35:45 -0800
commit94cbe63149248e251580ef95a6d3a31faf00a238 (patch)
treeafce67e1b95f29eccac259f156185e982d6e3bb0 /test/binaryen.js/emit_asmjs.js
parent13ec76dfbc1c72a5e77d6a33fca5bf349308162d (diff)
downloadbinaryen-94cbe63149248e251580ef95a6d3a31faf00a238.tar.gz
binaryen-94cbe63149248e251580ef95a6d3a31faf00a238.tar.bz2
binaryen-94cbe63149248e251580ef95a6d3a31faf00a238.zip
Provide AddImport/AddExport for each element in the C-API (#1292)
* Provide AddImport/AddExport for each element in the C-API
Diffstat (limited to 'test/binaryen.js/emit_asmjs.js')
-rw-r--r--test/binaryen.js/emit_asmjs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/binaryen.js/emit_asmjs.js b/test/binaryen.js/emit_asmjs.js
index 6848f5f01..c7cd5c717 100644
--- a/test/binaryen.js/emit_asmjs.js
+++ b/test/binaryen.js/emit_asmjs.js
@@ -4,7 +4,7 @@ var signature = module.addFunctionType("ii", Binaryen.i32, [ Binaryen.i32 ]);
module.addFunction("main", signature, [], module.getLocal(0, Binaryen.i32));
-module.addExport("main", "main");
+module.addFunctionExport("main", "main");
module.validate(); // should validate before calling emitAsmjs