Index: pkg/compiler/lib/src/dump_info.dart |
diff --git a/pkg/compiler/lib/src/dump_info.dart b/pkg/compiler/lib/src/dump_info.dart |
index 3194e57e7b2cd434d83047918a7a3b4af9bfc80c..67696cda0a740ba04ec207c83b086f9d48883995 100644 |
--- a/pkg/compiler/lib/src/dump_info.dart |
+++ b/pkg/compiler/lib/src/dump_info.dart |
@@ -42,7 +42,7 @@ class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> { |
compiler.dumpInfoTask._constantToNode.forEach((constant, node) { |
// TODO(sigmund): add dependencies on other constants |
var size = compiler.dumpInfoTask._nodeToSize[node]; |
- var code = jsAst.prettyPrint(node, compiler); |
+ var code = jsAst.prettyPrint(node, compiler.options); |
var info = new ConstantInfo( |
size: size, code: code, outputUnit: _unitInfoForConstant(constant)); |
_constantToInfo[constant] = info; |
@@ -533,7 +533,7 @@ class DumpInfoTask extends CompilerTask implements InfoReporter { |
// Concatenate rendered ASTs. |
StringBuffer sb = new StringBuffer(); |
for (jsAst.Node ast in code) { |
- sb.writeln(jsAst.prettyPrint(ast, compiler)); |
+ sb.writeln(jsAst.prettyPrint(ast, compiler.options)); |
} |
return sb.toString(); |
} |