From 67019f9a72175bc7a098d72aa14a6f6afeb2efce Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Mon, 13 May 2019 10:33:55 -0700 Subject: 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 --- test/binaryen.js/functions.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'test/binaryen.js/functions.js') 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()); -- cgit v1.2.3