Chromium Code Reviews| Index: lib/json/json.dart |
| diff --git a/lib/json/json.dart b/lib/json/json.dart |
| index 07a0d4d843c7a72f60f3d733acf48ffa2f19ca13..523d3cdc2d572cb00fbae5b86b5b06f777a6d02e 100644 |
| --- a/lib/json/json.dart |
| +++ b/lib/json/json.dart |
| @@ -282,6 +282,8 @@ class _JsonParser { |
| } else if (_isDigit()) { |
| position++; |
| while (_isDigit()) position++; |
| + } else { |
| + _error("Expected digit when parsing number"); |
| } |
| bool isInt = true; |