From 0c78665777e244741bfe6e2ab30fedded96354bd Mon Sep 17 00:00:00 2001 From: Douglas Crosher Date: Sat, 16 Jan 2016 12:32:34 +1100 Subject: The break operation may have a value, and must with the v8 encoding. --- src/wasm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wasm.h') diff --git a/src/wasm.h b/src/wasm.h index 8a3ceac7c..9edd7645e 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -432,14 +432,14 @@ public: doIndent(o, indent) << name << '\n'; } else { printOpening(o, "br ") << name; - if (!value) { + if (!value || value->is()) { // avoid a new line just for the parens o << ")"; return o; } incIndent(o, indent); } - if (value) printFullLine(o, indent, value); + if (value && !value->is()) printFullLine(o, indent, value); return decIndent(o, indent); } }; -- cgit v1.2.3