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

Unified Diff: lib/json/json.dart

Issue 10257029: Add a space at the end of line being parsed to correctly process cases like 3.14. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | tests/json/json.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/json/json.dart
diff --git a/lib/json/json.dart b/lib/json/json.dart
index 9448b58707981651b957ed31af89abb38065ea02..a3542c5cf0aca1258bb40b883277f838b3d237c1 100644
--- a/lib/json/json.dart
+++ b/lib/json/json.dart
@@ -96,7 +96,7 @@ class _JsonParser {
return new _JsonParser._internal(json)._parseToplevel();
}
- _JsonParser._internal(String this.json) {
+ _JsonParser._internal(String json) : this.json = '${json} ' {
Anders Johnsen 2012/04/28 08:23:22 This is not the correct way to fix this. This will
Anton Muhin 2012/04/28 08:25:07 I didn't do performance measurements, I'd prefer i
Anders Johnsen 2012/04/28 09:03:07 Agreed! I'll fix the number parsing error in anoth
if (tokens !== null) return;
// Use a list as jump-table, faster then switch and if.
« no previous file with comments | « no previous file | tests/json/json.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698