Index: sdk/lib/_internal/compiler/compiler.dart |
diff --git a/sdk/lib/_internal/compiler/compiler.dart b/sdk/lib/_internal/compiler/compiler.dart |
index e40c74ae6ca55d543de65a901b4d26e408e9080e..b79ab22505cecf66b5bb46b2ca69efb17fea1ed7 100644 |
--- a/sdk/lib/_internal/compiler/compiler.dart |
+++ b/sdk/lib/_internal/compiler/compiler.dart |
@@ -85,7 +85,7 @@ Future<String> compile(Uri script, |
Uri packageRoot, |
CompilerInputProvider inputProvider, |
DiagnosticHandler handler, |
- [List<String> options = const [], |
+ [List<String> options = const [], |
CompilerOutputProvider outputProvider, |
Map<String, dynamic> environment = const {}]) { |
if (!libraryRoot.path.endsWith("/")) { |
@@ -107,13 +107,6 @@ Future<String> compile(Uri script, |
return compiler.run(script).then((_) { |
String code = compiler.assembledCode; |
if (code != null && outputProvider != null) { |
- String outputType = 'js'; |
- if (options.contains('--output-type=dart')) { |
- outputType = 'dart'; |
- } |
- outputProvider('', outputType) |
- ..add(code) |
- ..close(); |
code = ''; // Non-null signals success. |
} |
return code; |