Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Unified Diff: sdk/lib/_internal/compiler/implementation/apiimpl.dart

Issue 48323003: Implement fromEnvironment on bool, int, String in dart2js. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/apiimpl.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/apiimpl.dart (revision 29517)
+++ 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];
}

Powered by Google App Engine
This is Rietveld 408576698