From 5443d309d54797298aac6ea42bbcf81cfc435e66 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Thu, 24 Mar 2016 16:40:07 -0700 Subject: [PATCH] Fixed multiline block for async functions --- src/compiler/transformers/ts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/transformers/ts.ts b/src/compiler/transformers/ts.ts index c49cdc49821..9ddc83ca3b9 100644 --- a/src/compiler/transformers/ts.ts +++ b/src/compiler/transformers/ts.ts @@ -2004,7 +2004,7 @@ namespace ts { ) ); - const block = createBlock(statements, /*location*/ node.body); + const block = createBlock(statements, /*location*/ node.body, /*multiLine*/ true); // Minor optimization, emit `_super` helper to capture `super` access in an arrow. // This step isn't needed if we eventually transform this to ES5.