| Index: sdk/lib/_internal/compiler/implementation/apiimpl.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/apiimpl.dart (revision 29652)
|
| +++ sdk/lib/_internal/compiler/implementation/apiimpl.dart (working copy)
|
| @@ -20,6 +20,7 @@
|
| final Uri libraryRoot;
|
| final Uri packageRoot;
|
| List<String> options;
|
| + Map<String, dynamic> environment;
|
| bool mockableLibraryUsed = false;
|
| final Set<String> allowedLibraryCategories;
|
|
|
| @@ -28,7 +29,8 @@
|
| this.handler,
|
| this.libraryRoot,
|
| this.packageRoot,
|
| - List<String> options)
|
| + List<String> options,
|
| + this.environment)
|
| : this.options = options,
|
| this.allowedLibraryCategories = getAllowedLibraryCategories(options),
|
| super(
|
| @@ -329,4 +331,6 @@
|
| print('$message: ${tryToString(exception)}');
|
| print(tryToString(stackTrace));
|
| }
|
| +
|
| + fromEnvironment(String name) => environment[name];
|
| }
|
|
|