Closed rakudrama closed 2 months ago
The formatter removed a trailing comma here:
https://dart-review.googlesource.com/c/sdk/+/383722/1/pkg/compiler/lib/src/js_backend/backend_impact.dart#105
Another example where the erased trailing comma is in the following list:
https://dart-review.googlesource.com/c/sdk/+/383722/1/pkg/compiler/lib/src/js_backend/backend_impact.dart#323
Yes, this is by design. The key idea of the new style is that it automates both adding and removing trailing commas. See #1539 for lots more discussion, in particular this comment.
The formatter removed a trailing comma here:
https://dart-review.googlesource.com/c/sdk/+/383722/1/pkg/compiler/lib/src/js_backend/backend_impact.dart#105
Another example where the erased trailing comma is in the following list:
https://dart-review.googlesource.com/c/sdk/+/383722/1/pkg/compiler/lib/src/js_backend/backend_impact.dart#323