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

Unified Diff: sdk/lib/_internal/compiler/compiler.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/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;

Powered by Google App Engine
This is Rietveld 408576698