fix broken tests

This commit is contained in:
Sebastian McKenzie
2015-07-25 06:14:09 +01:00
parent 55f3fb3015
commit 7964e3bf11
13 changed files with 13 additions and 37 deletions

View File

@@ -76,7 +76,7 @@ pp.processComment = function (node) {
if (lastChild.leadingComments) {
if (last(lastChild.leadingComments).range[1] <= node.range[0]) {
node.leadingComments = lastChild.leadingComments;
delete lastChild.leadingComments;
lastChild.leadingComments = null;
} else {
// A leading comment for an anonymous class had been stolen by its first MethodDefinition,
// so this takes back the leading comment.