| Index: sdk/lib/_internal/compiler/compiler.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/compiler.dart (revision 29517)
|
| +++ sdk/lib/_internal/compiler/compiler.dart (working copy)
|
| @@ -85,8 +85,9 @@
|
| Uri packageRoot,
|
| CompilerInputProvider inputProvider,
|
| DiagnosticHandler handler,
|
| - [List<String> options = const [],
|
| - CompilerOutputProvider outputProvider]) {
|
| + [List<String> options = const [],
|
| + CompilerOutputProvider outputProvider,
|
| + Map<String, dynamic> environment = const {}]) {
|
| if (!libraryRoot.path.endsWith("/")) {
|
| throw new ArgumentError("libraryRoot must end with a /");
|
| }
|
| @@ -100,7 +101,8 @@
|
| handler,
|
| libraryRoot,
|
| packageRoot,
|
| - options);
|
| + options,
|
| + environment);
|
| // TODO(ahe): Use the value of the future (which signals success or failure).
|
| return compiler.run(script).then((_) {
|
| String code = compiler.assembledCode;
|
|
|