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

Unified Diff: pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart

Issue 1077123002: dart2js: Add newline in minified mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
index b5d2fbad17e1112c8df3e5dbae4c50273937414c..31fdea5e63f962ac523e5f3d3a2469f4df1e7352 100644
--- a/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
@@ -644,7 +644,9 @@ class OldEmitter implements Emitter {
js.statement('var ${namer.deferredTypesName} = #;',
constructList(types)),
compiler, monitor: compiler.dumpInfoTask));
- output.add(n);
+ if (compiler.enableMinification) {
+ output.add('\n');
herhut 2015/04/10 13:01:57 How about output.add(N)? That will turn into ";\n"
zarah 2015/04/10 13:05:54 No, then in minified mode there will be two ';'s.
zarah 2015/04/10 13:20:24 sorry, non-minified, just for the record.
+ }
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698