Chromium Code Reviews| 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. |