Failing test with return not on the same line as it's expression

Note that this is not a parenthesis issue but this was the easiest way
to reproduce it. I ran into it when testing generators with `retainLines`
and the generated `return` statement (replacing yeild) was printed on
the line preceding the expression being yielded.
This commit is contained in:
Amjad Masad 2015-04-30 05:06:56 -07:00
parent 16c86c25b7
commit a540cbe801
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,5 @@
function foo(l) {
return (
l
);
}

View File

@ -0,0 +1,2 @@
function foo(l) {
return l;}

View File

@ -0,0 +1,3 @@
{
"retainLines": true
}