| Index: sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart (revision 15244)
|
| +++ sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart (working copy)
|
| @@ -121,17 +121,18 @@
|
| buffer.add(' }');
|
| }
|
|
|
| - void emitClassFields(ClassElement classElement, CodeBuffer buffer) {
|
| - /* Do nothing. */
|
| + void emitClassFields(ClassElement classElement, CodeBuffer buffer,
|
| + {bool emitEndingComma: true}) {
|
| + if (emitEndingComma) buffer.add(', ');
|
| }
|
|
|
| void emitClassGettersSetters(ClassElement classElement, CodeBuffer buffer,
|
| - {bool omitLeadingComma: false}) {
|
| + {bool emitLeadingComma: true}) {
|
| emitComma() {
|
| - if (!omitLeadingComma) {
|
| + if (emitLeadingComma) {
|
| buffer.add(",\n ");
|
| } else {
|
| - omitLeadingComma = false;
|
| + emitLeadingComma = true;
|
| }
|
| }
|
|
|
|
|