diff options
Diffstat (limited to 'test/binaryen.js')
-rw-r--r-- | test/binaryen.js/kitchen-sink.js | 4 | ||||
-rw-r--r-- | test/binaryen.js/kitchen-sink.js.txt | 10 |
2 files changed, 13 insertions, 1 deletions
diff --git a/test/binaryen.js/kitchen-sink.js b/test/binaryen.js/kitchen-sink.js index 160054fde..9655d5607 100644 --- a/test/binaryen.js/kitchen-sink.js +++ b/test/binaryen.js/kitchen-sink.js @@ -83,6 +83,9 @@ function test_types() { console.log(" // BinaryenTypeI31ref: " + binaryen.i31ref); console.log(" //", binaryen.expandType(binaryen.i31ref).join(",")); + console.log(" // BinaryenTypeDataref: " + binaryen.dataref); + console.log(" //", binaryen.expandType(binaryen.dataref).join(",")); + console.log(" // BinaryenTypeAuto: " + binaryen.auto); var i32_pair = binaryen.createType([binaryen.i32, binaryen.i32]); @@ -590,6 +593,7 @@ function test_core() { module.anyref.pop(), module.eqref.pop(), module.i31ref.pop(), + module.dataref.pop(), // Memory module.memory.size(), diff --git a/test/binaryen.js/kitchen-sink.js.txt b/test/binaryen.js/kitchen-sink.js.txt index f73990493..1b1a29de6 100644 --- a/test/binaryen.js/kitchen-sink.js.txt +++ b/test/binaryen.js/kitchen-sink.js.txt @@ -20,7 +20,9 @@ // 9 // BinaryenTypeEqref: 10 // 10 - // BinaryenTypeI31ref: 12 + // BinaryenTypeI31ref: 11 + // 11 + // BinaryenTypeDataref: 12 // 12 // BinaryenTypeAuto: -1 // 2,2 @@ -1936,6 +1938,9 @@ getExpressionInfo(tuple[3])={"id":14,"type":5,"value":3.7} (pop i31ref) ) (drop + (pop dataref) + ) + (drop (memory.size) ) (drop @@ -3795,6 +3800,9 @@ getExpressionInfo(tuple[3])={"id":14,"type":5,"value":3.7} (pop i31ref) ) (drop + (pop dataref) + ) + (drop (memory.size) ) (drop |