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

Unified Diff: runtime/lib/string_patch.dart

Issue 24975002: - Implement a first cut for const String.env in the VM to allow (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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: runtime/lib/string_patch.dart
===================================================================
--- runtime/lib/string_patch.dart (revision 27984)
+++ runtime/lib/string_patch.dart (working copy)
@@ -6,6 +6,9 @@
/* patch */ factory String.fromCharCodes(Iterable<int> charCodes) {
return _StringBase.createFromCharCodes(charCodes);
}
+
+ /* patch */ const factory String.env(String name, String defaultValue)
floitsch 2013/09/27 13:52:31 [String defaultValue = ""]
Ivan Posva 2013/09/27 21:05:06 ditto.
+ native "String_env";
}

Powered by Google App Engine
This is Rietveld 408576698