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

Unified Diff: sdk/lib/_internal/lib/core_patch.dart

Issue 54663002: Change int.fromEnvironment in VM to use same code as int.parse. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change order for String/bool too. Add canonicalization. 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/lib/core_patch.dart
diff --git a/sdk/lib/_internal/lib/core_patch.dart b/sdk/lib/_internal/lib/core_patch.dart
index 9e1c51f706c1467c15479b9bbb13f974ae99c9b2..601149a35bad17564bcae335bb55bea3cbb881d4 100644
--- a/sdk/lib/_internal/lib/core_patch.dart
+++ b/sdk/lib/_internal/lib/core_patch.dart
@@ -105,7 +105,7 @@ patch class int {
patch factory int.fromEnvironment(String name, {int defaultValue}) {
throw new UnsupportedError(
- 'int.fromEnvironement can only be used as a const constructor');
+ 'int.fromEnvironment can only be used as a const constructor');
}
}
@@ -227,14 +227,14 @@ patch class String {
patch factory String.fromEnvironment(String name, {String defaultValue}) {
throw new UnsupportedError(
- 'String.fromEnvironement can only be used as a const constructor');
+ 'String.fromEnvironment can only be used as a const constructor');
}
}
patch class bool {
patch factory bool.fromEnvironment(String name, {bool defaultValue: false}) {
throw new UnsupportedError(
- 'bool.fromEnvironement can only be used as a const constructor');
+ 'bool.fromEnvironment can only be used as a const constructor');
}
}

Powered by Google App Engine
This is Rietveld 408576698