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
parent
ef4f70bf96
commit
dcc6aed322
|
@ -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' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue