From 68dc2eddc24844c7582cafa85afeb4023a47888f Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Mon, 12 Jun 2017 16:50:28 -0700 Subject: Support new result syntax for if/loop/block (#1047) Support both syntax formats in input since the old spec tests still need to be parsable. --- test/binaryen.js/kitchen-sink.js.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'test/binaryen.js') diff --git a/test/binaryen.js/kitchen-sink.js.txt b/test/binaryen.js/kitchen-sink.js.txt index 59cf1ab10..c70888508 100644 --- a/test/binaryen.js/kitchen-sink.js.txt +++ b/test/binaryen.js/kitchen-sink.js.txt @@ -22,10 +22,10 @@ BinaryenFloat64: 4 (start $starter) (func "$kitchen()sinker" (type $iiIfF) (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32) (local $4 i32) - (block $the-body i32 + (block $the-body (result i32) (block $the-nothing (drop - (block $the-value i32 + (block $the-value (result i32) (drop (i32.clz (i32.const -10) @@ -416,12 +416,12 @@ BinaryenFloat64: 4 ) ) (drop - (loop $in i32 + (loop $in (result i32) (i32.const 0) ) ) (drop - (loop i32 + (loop (result i32) (i32.const 0) ) ) @@ -1440,10 +1440,10 @@ int main() { (start $starter) (func "$kitchen()sinker" (type $iiIfF) (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32) (local $4 i32) - (block $the-body i32 + (block $the-body (result i32) (block $the-nothing (drop - (block $the-value i32 + (block $the-value (result i32) (drop (i32.clz (i32.const -10) @@ -1834,12 +1834,12 @@ int main() { ) ) (drop - (loop $in i32 + (loop $in (result i32) (i32.const 0) ) ) (drop - (loop i32 + (loop (result i32) (i32.const 0) ) ) -- cgit v1.2.3