Chromium Code Reviews| Index: frog/gen.dart |
| =================================================================== |
| --- frog/gen.dart (revision 1427) |
| +++ frog/gen.dart (working copy) |
| @@ -324,8 +324,11 @@ |
| writer.enterBlock('Object.defineProperty(' + |
| '${property.declaringType.jsname}.prototype, "${property.jsname}", {'); |
| if (property.getter != null) { |
| - writer.writeln( |
| - 'get: ${property.declaringType.jsname}.prototype.${property.getter.jsname},'); |
| + writer.write( |
| + 'get: ${property.declaringType.jsname}.prototype.${property.getter.jsname}'); |
| + // The shenanigan below is to make IE happy -- IE 9 doesn't like a |
| + // trailing comma on the last element in a list. |
|
Jennifer Messerly
2011/11/10 23:57:08
interesting. Is it only object literals, or does i
Emily Fortuna
2011/11/11 00:58:41
I hadn't run into that case yet since I don't have
|
| + writer.writeln(property.setter == null ? '' : ','); |
| } |
| if (property.setter != null) { |
| writer.writeln( |