kcjoon / as3corelib

Automatically exported from code.google.com/p/as3corelib
0 stars 0 forks source link

JSONTokenizer should parse NaN #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. var jsonDecoder:JSONDecoder = new JSONDecoder('{"x" : NaN}');

What is the expected output? What do you see instead?
x should be a Number with the value of NaN.

But it throws this error:
Error: Unexpected N encountered
    at com.adobe.serialization.json::JSONTokenizer/parseError()

What version of the product are you using? On what operating system?
0.9 on Mac OS X

Please provide any additional information below.

This isn't in the JSON spec, but it's handled by the browsers.

Original issue reported on code.google.com by dasa.pad...@gmail.com on 12 Sep 2008 at 9:16

GoogleCodeExporter commented 8 years ago

Original comment by darron.schall on 6 Nov 2008 at 8:13

GoogleCodeExporter commented 8 years ago

Original comment by mikechambers on 7 Nov 2008 at 7:25

GoogleCodeExporter commented 8 years ago

Original comment by darron.schall on 20 Nov 2008 at 4:53

GoogleCodeExporter commented 8 years ago
Fixed in r83

Original comment by darron.schall on 23 Dec 2008 at 3:14

GoogleCodeExporter commented 8 years ago

Original comment by darron.schall on 23 Dec 2008 at 3:15