diff options
Diffstat (limited to 'test/binaryen.js')
-rw-r--r-- | test/binaryen.js/kitchen-sink.js | 2 | ||||
-rw-r--r-- | test/binaryen.js/kitchen-sink.js.txt | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/binaryen.js/kitchen-sink.js b/test/binaryen.js/kitchen-sink.js index bd55dc8a0..3205de702 100644 --- a/test/binaryen.js/kitchen-sink.js +++ b/test/binaryen.js/kitchen-sink.js @@ -214,7 +214,7 @@ function test_core() { console.log("getExpressionType=" + Binaryen.getExpressionType(valueList[3])); console.log(Binaryen.emitText(valueList[3])); // test printing a standalone expression console.log(Binaryen.getConstValueI32(module.i32.const(5))); - console.log(Binaryen.getConstValueI64(module.i64.const(6, 7))); + console.log(JSON.stringify(Binaryen.getConstValueI64(module.i64.const(6, 7)))); console.log(Binaryen.getConstValueF32(module.f32.const(8.5))); console.log(Binaryen.getConstValueF64(module.f64.const(9.5))); diff --git a/test/binaryen.js/kitchen-sink.js.txt b/test/binaryen.js/kitchen-sink.js.txt index d097e9a7f..f585d28d8 100644 --- a/test/binaryen.js/kitchen-sink.js.txt +++ b/test/binaryen.js/kitchen-sink.js.txt @@ -38,7 +38,7 @@ getExpressionType=3 ) 5 -{ low: 6, high: 7 } +{"low":6,"high":7} 8.5 9.5 (module @@ -1403,7 +1403,7 @@ getExpressionType=3 expressions[248] = BinaryenConst(the_module, BinaryenLiteralInt64(30064771078)); BinaryenConstGetValueI64Low(expressions[248]); BinaryenConstGetValueI64High(expressions[248]); -{ low: 6, high: 7 } +{"low":6,"high":7} expressions[249] = BinaryenConst(the_module, BinaryenLiteralFloat32(8.5)); BinaryenConstGetValueF32(expressions[249]); 8.5 |