| Index: tests/compiler/dart2js/js_parser_test.dart
|
| diff --git a/tests/compiler/dart2js/js_parser_test.dart b/tests/compiler/dart2js/js_parser_test.dart
|
| index a5f923b989edb2057a08d63ccba4d5c9fd47028f..e3768a373652dc1d702ae0d748af0b642bfea87e 100644
|
| --- a/tests/compiler/dart2js/js_parser_test.dart
|
| +++ b/tests/compiler/dart2js/js_parser_test.dart
|
| @@ -174,11 +174,13 @@ void main() {
|
| testExpression("[]"),
|
| testError("[42 42]"),
|
| testExpression('beebop([1, 2, 3])'),
|
| - // *We can't parse array literals with holes in them.
|
| - testError("[1,, 2]"),
|
| - testError("[1,]"),
|
| - testError("[,]"),
|
| - testError("[, 42]"),
|
| + // Array literals with holes in them.
|
| + testExpression("[1,, 2]"),
|
| + testExpression("[1,]", "[1]"),
|
| + testExpression("[1,,]", "[1,,]"),
|
| + testExpression("[,]"),
|
| + testExpression("[,,]"),
|
| + testExpression("[, 42]"),
|
| // Ternary operator.
|
| testExpression("x = a ? b : c"),
|
| testExpression("y = a == null ? b : a"),
|
|
|