Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed comments following simple expressions

  • Loading branch information...
commit 00fab717bb686d914a117013ef1cc5bf3855b68c 1 parent 216e383
@comp615 comp615 authored
View
1  escodegen.js
@@ -701,6 +701,7 @@
if (stmt.trailingComments) {
tailingToStatement = !endsWithLineTerminator(toSourceNode(result).toString());
specialBase = stringRepeat(' ', calculateSpaces(toSourceNode([base, result, indent]).toString()));
+ result = isArray(result) ? result : [result];
for (i = 0, len = stmt.trailingComments.length; i < len; i += 1) {
comment = stmt.trailingComments[i];
if (tailingToStatement) {
View
1  test/comment/simple-statement-comment.expected.js
@@ -0,0 +1 @@
+; // Trailing
View
1  test/comment/simple-statement-comment.js
@@ -0,0 +1 @@
+; // Trailing
Please sign in to comment.
Something went wrong with that request. Please try again.