From 13725e54f845ec84947130aaa888b4c11e53f9af Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Wed, 9 Oct 2019 13:40:06 -0700 Subject: Make try body with multiple instructions roundtrip (#2374) Previously we didn't print an additional block when there are multiple instructions within a `try` body, so those wast files cannot be parsed correctly, because the wast parser assumes there are two bodies within a `try` scope: a try body and a catch body. We don't need to print an additional block for a `catch` body because `(catch ...)` itself serves as a scope. --- test/exception-handling.wast.fromBinary.noDebugInfo | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/exception-handling.wast.fromBinary.noDebugInfo') diff --git a/test/exception-handling.wast.fromBinary.noDebugInfo b/test/exception-handling.wast.fromBinary.noDebugInfo index 23ba7946c..3ef95033c 100644 --- a/test/exception-handling.wast.fromBinary.noDebugInfo +++ b/test/exception-handling.wast.fromBinary.noDebugInfo @@ -7,6 +7,12 @@ (local.get $0) ) (func $1 (; 1 ;) (type $1) + (nop) + ) + (func $2 (; 2 ;) (type $1) + (nop) + ) + (func $3 (; 3 ;) (type $1) (local $0 exnref) (try (throw $event$0 -- cgit v1.2.3