prebirth: Add newlines between body expressions

Just makes it easier to look at for debugging.

* build-aux/bootstrap/prebirth.js (Compiler#_bodyToEs): Add newlines.
master
Mike Gerwitz 2017-08-29 23:46:00 -04:00
parent ef4f70bf96
commit dcc6aed322
Signed by: mikegerwitz
GPG Key ID: 8C917B7F5DC51BA2
1 changed files with 3 additions and 3 deletions

View File

@ -455,11 +455,11 @@ class Compiler
// the result (that is, an array of compiled s-expressions) is // the result (that is, an array of compiled s-expressions) is
// joined semicolon-delimited, with a `return' statement preceding // joined semicolon-delimited, with a `return' statement preceding
// the final expression // the final expression
return js.reduce( ( result, s, i ) => return js.map( ( s, i ) =>
{ {
const ret = ( i === ( js.length - 1 ) ) ? "return " : ""; const ret = ( i === ( js.length - 1 ) ) ? "return " : "";
return result + " " + ret + s + ";"; return ` ${ret}${s};`;
}, "" ); } ).join( '\n' );
} }