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

Unified Diff: lib/json/json.dart

Issue 10307003: Update locale char when moving position in number parsing in the JSON parser. (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/utils/json_test.dart » ('j') | tests/utils/json_test.dart » ('J')
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 8a0ca5cde52333ec44ab04c75cf8727031d23b98..01e30a4f36c12dd21c5c04c956682e1d132f9662 100644
--- a/lib/json/json.dart
+++ b/lib/json/json.dart
@@ -304,7 +304,7 @@ class _JsonParser {
if (char === CHAR_E || char === CHAR_CAPITAL_E) {
char = _nextChar();
- if (char === MINUS || char === PLUS) position++;
+ if (char === MINUS || char === PLUS) char = _nextChar();
if (_isDigit(char)) {
char = _nextChar();
isInt = false;
« no previous file with comments | « no previous file | tests/utils/json_test.dart » ('j') | tests/utils/json_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698