summaryrefslogtreecommitdiff
path: root/test/binaryen.js/global.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/binaryen.js/global.js')
-rw-r--r--test/binaryen.js/global.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/binaryen.js/global.js b/test/binaryen.js/global.js
index f24331d82..ca041d5bb 100644
--- a/test/binaryen.js/global.js
+++ b/test/binaryen.js/global.js
@@ -13,6 +13,8 @@ var module = new Binaryen.Module();
var initExpr = module.i32.const(1);
var global = module.addGlobal("a-global", Binaryen.i32, false, initExpr);
+console.log("GetGlobal is equal: " + (global === module.getGlobal("a-global")));
+
var globalInfo = Binaryen.getGlobalInfo(global);
console.log("getGlobalInfo=" + JSON.stringify(cleanInfo(globalInfo)));