diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-12-30 11:05:47 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-30 11:05:47 -0800 |
commit | 593178a3e207e5382338fbf05adce419fe9545fd (patch) | |
tree | a011bcbdc2109bcda007e69f2bc3c4744ccc0891 /test/binaryen.js/kitchen-sink.js | |
parent | b5ee16f318019f89d8a897437fb906d470cfa8d9 (diff) | |
download | binaryen-593178a3e207e5382338fbf05adce419fe9545fd.tar.gz binaryen-593178a3e207e5382338fbf05adce419fe9545fd.tar.bz2 binaryen-593178a3e207e5382338fbf05adce419fe9545fd.zip |
Fixes for #5998 (#1341)
* binaryen.js and wasm.js don't need filesystem support
* newest emscripten no longer uses Runtime.*
* build fixes for binaryen.js and wasm.js also move binaryen.js to use standard emscripten MODULARIZE
* run binaryen.js in all possible engines ; update js builds
* don't emit debug build to a different name, just emit binaryen.js. makes testing easier and safer
* remove volatile things from binaryen.js info printing in tests
Diffstat (limited to 'test/binaryen.js/kitchen-sink.js')
-rw-r--r-- | test/binaryen.js/kitchen-sink.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/binaryen.js/kitchen-sink.js b/test/binaryen.js/kitchen-sink.js index 114df55dd..f1f67ea28 100644 --- a/test/binaryen.js/kitchen-sink.js +++ b/test/binaryen.js/kitchen-sink.js @@ -1,6 +1,16 @@ // kitchen sink, tests the full API +function cleanInfo(info) { + var ret = {}; + for (var x in info) { + if (x !== 'value') { + ret[x] = info[x]; + } + } + return ret; +} + var module; // helpers @@ -212,7 +222,7 @@ function test_core() { ]; // Test expression utility - console.log("getExpressionInfo=" + JSON.stringify(Binaryen.getExpressionInfo(valueList[3]))); + console.log("getExpressionInfo=" + JSON.stringify(cleanInfo(Binaryen.getExpressionInfo(valueList[3])))); console.log(Binaryen.emitText(valueList[3])); // test printing a standalone expression console.log("getExpressionInfo(i32.const)=" + JSON.stringify(Binaryen.getExpressionInfo(module.i32.const(5)))); |