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

Unified Diff: runtime/bin/process_patch.dart

Issue 123263003: Make the Platform.environment return value an unmodifiable map (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 6 years, 11 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
« no previous file with comments | « no previous file | sdk/lib/io/platform.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process_patch.dart
diff --git a/runtime/bin/process_patch.dart b/runtime/bin/process_patch.dart
index b83ec1b60114c10cee1aa3ef05972e036e39937d..cab5b49f3c666af63e4ca081b24f1ca7b3cdfa66 100644
--- a/runtime/bin/process_patch.dart
+++ b/runtime/bin/process_patch.dart
@@ -198,7 +198,7 @@ class _ProcessImpl extends NativeFieldWrapperClass1 implements Process {
throw new ArgumentError("Environment is not a map: $environment");
}
if (identical(true, includeParentEnvironment)) {
- environment = Platform.environment..addAll(environment);
+ environment = new Map.from(Platform.environment)..addAll(environment);
}
environment.forEach((key, value) {
if (key is !String || value is !String) {
« no previous file with comments | « no previous file | sdk/lib/io/platform.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698