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' ); }