From dcc6aed322d7fefd44a51ff729d1be3c38b01ded Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Tue, 29 Aug 2017 23:46:00 -0400 Subject: [PATCH] prebirth: Add newlines between body expressions Just makes it easier to look at for debugging. * build-aux/bootstrap/prebirth.js (Compiler#_bodyToEs): Add newlines. --- build-aux/bootstrap/prebirth.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build-aux/bootstrap/prebirth.js b/build-aux/bootstrap/prebirth.js index 3ddf8a6..3508338 100644 --- a/build-aux/bootstrap/prebirth.js +++ b/build-aux/bootstrap/prebirth.js @@ -455,11 +455,11 @@ class Compiler // the result (that is, an array of compiled s-expressions) is // joined semicolon-delimited, with a `return' statement preceding // the final expression - return js.reduce( ( result, s, i ) => + return js.map( ( s, i ) => { const ret = ( i === ( js.length - 1 ) ) ? "return " : ""; - return result + " " + ret + s + ";"; - }, "" ); + return ` ${ret}${s};`; + } ).join( '\n' ); }