diff options
Diffstat (limited to 'test/binaryen.js')
-rw-r--r-- | test/binaryen.js/global.js | 2 | ||||
-rw-r--r-- | test/binaryen.js/global.js.txt | 1 |
2 files changed, 3 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))); diff --git a/test/binaryen.js/global.js.txt b/test/binaryen.js/global.js.txt index 49a0a4b0b..fb3e93dfe 100644 --- a/test/binaryen.js/global.js.txt +++ b/test/binaryen.js/global.js.txt @@ -1,3 +1,4 @@ +GetGlobal is equal: true getGlobalInfo={"module":"","base":"","mutable":false} getExpressionInfo(init)={"id":14,"value":1} (i32.const 1) |