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

Unified Diff: runtime/lib/convert_patch.dart

Issue 387323002: Fix error message for unexpected characters in JSON. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Actually fix the problem, using existing variables. Created 6 years, 5 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/lib/convert/json_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/convert_patch.dart
diff --git a/runtime/lib/convert_patch.dart b/runtime/lib/convert_patch.dart
index 39617dc7a0fc83ee077d51e15eb986114ec07682..8bd7e4001fe398a15c2004be51666a955b6d2f46 100644
--- a/runtime/lib/convert_patch.dart
+++ b/runtime/lib/convert_patch.dart
@@ -504,7 +504,7 @@ class _JsonParser {
char = source.codeUnitAt(position);
}
if (char < CHAR_0 || char > CHAR_9) {
- if (negative) {
+ if (intSign < 0) {
fail(position, "Missing expected digit");
} else {
// If it doesn't even start out as a numeral.
« no previous file with comments | « no previous file | tests/lib/convert/json_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698