Index: pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart b/pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart |
index 9e81bca631b5918104099b25a6888581e2cce847..65d0519b357cf876b49338421e5249dfa45441a7 100644 |
--- a/pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart |
@@ -281,7 +281,7 @@ class ModelEmitter { |
isSplit ? buildDeferredInitializerGlobal() : new js.Block.empty(), |
code]); |
- mainOutput.addBuffer(js.prettyPrint(program, compiler, |
+ mainOutput.addBuffer(js.createCodeBuffer(program, compiler, |
monitor: compiler.dumpInfoTask)); |
if (shouldGenerateSourceMap) { |
@@ -335,7 +335,7 @@ class ModelEmitter { |
buildDeferredInitializerGlobal(), |
js.js.statement('$deferredInitializersGlobal.current = #', code)]); |
- output.addBuffer(js.prettyPrint(program, compiler, |
+ output.addBuffer(js.createCodeBuffer(program, compiler, |
monitor: compiler.dumpInfoTask)); |
// Make a unique hash of the code (before the sourcemaps are added) |