summaryrefslogtreecommitdiff
path: root/test/binaryen.js/functions.js
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-05-13 10:33:55 -0700
committerGitHub <noreply@github.com>2019-05-13 10:33:55 -0700
commit67019f9a72175bc7a098d72aa14a6f6afeb2efce (patch)
tree83adc3d4a235c00f6bf545fc5aeeeadb8f1a5663 /test/binaryen.js/functions.js
parenta1ff274b6bca0ff8d1635c32a6d206863f0a2fc3 (diff)
downloadbinaryen-67019f9a72175bc7a098d72aa14a6f6afeb2efce.tar.gz
binaryen-67019f9a72175bc7a098d72aa14a6f6afeb2efce.tar.bz2
binaryen-67019f9a72175bc7a098d72aa14a6f6afeb2efce.zip
Add missing methods for globals to binaryen.js (#2099)
- Print `globals` array in the tracing mode like other arrays (`functions`, `exports`, `imports`, ...) - Add accessor functions for globals
Diffstat (limited to 'test/binaryen.js/functions.js')
-rw-r--r--test/binaryen.js/functions.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/binaryen.js/functions.js b/test/binaryen.js/functions.js
index a02a7873a..3c57a6232 100644
--- a/test/binaryen.js/functions.js
+++ b/test/binaryen.js/functions.js
@@ -33,8 +33,6 @@ console.log(Binaryen.emitText(funcInfo.body));
module.removeFunction("a-function");
-module.addGlobal("a-global", Binaryen.i32, false, funcInfo.body);
-
module.validate();
console.log(module.emitText());