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

Unified Diff: runtime/lib/string_patch.dart

Issue 920793002: Change _interpolateSingle to use the same value in errors as _interpolate. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/string_patch.dart
diff --git a/runtime/lib/string_patch.dart b/runtime/lib/string_patch.dart
index f584410861cc4f8838a07be46a853edcf68e5801..bef6a18113b220038e2586435dffdef5f0c2617f 100644
--- a/runtime/lib/string_patch.dart
+++ b/runtime/lib/string_patch.dart
@@ -799,7 +799,7 @@ class _StringBase {
static String _interpolateSingle(Object o) {
final s = o.toString();
if (s is! String) {
- throw new ArgumentError(o);
+ throw new ArgumentError(s);
Lasse Reichstein Nielsen 2015/02/12 13:11:09 Using "o", which we already know has a faulty toSt
Ivan Posva 2015/02/20 06:43:48 Since you know s is not a String, you could also u
sra1 2015/02/24 16:57:02 It seems a bad idea to report the wrong irritant l
}
return s;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698