Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Unified Diff: dart/lib/compiler/implementation/js_backend/emitter.dart

Issue 10905211: Clean up operator names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: dart/lib/compiler/implementation/js_backend/emitter.dart
diff --git a/dart/lib/compiler/implementation/js_backend/emitter.dart b/dart/lib/compiler/implementation/js_backend/emitter.dart
index 518cf82bb0b74a7572daf2707d68019542eb9e98..7d62f94d31a0078d90f699c34eefa778bd36953f 100644
--- a/dart/lib/compiler/implementation/js_backend/emitter.dart
+++ b/dart/lib/compiler/implementation/js_backend/emitter.dart
@@ -735,7 +735,8 @@ function(prototype, staticName, fieldName, getterName, lazyValue) {
if (needsComma) buffer.add(',');
needsComma = true;
buffer.add('\n');
- buffer.add(' $name: ');
+ // TODO(ahe): Only add quotes around name when needed.
+ buffer.add(' "$name": ');
buffer.add(memberBuffer);
}

Powered by Google App Engine
This is Rietveld 408576698