Fix issue #5810 doubled comment on functions in array literals

This commit is contained in:
Dan Corder
2015-12-16 23:21:00 +00:00
parent 1e64f16c05
commit aba197cd4b
5 changed files with 108 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
var testArrayWithFunc = [
// Function comment
function() {
let x = 1;
},
// String comment
'1',
// Numeric comment
2,
// Object comment
{ a: 1 },
// Array comment
[1, 2, 3]
]