JSONParser parses invalid JSON input

RESOLVED FIXED

Status

RESOLVED FIXED
7 years ago
3 years ago

People

(Reporter: anba, Unassigned)

Tracking

Details

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
Created attachment 560279 [details]
JsonParserTest.java

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
Build ID: 20110902133214

Steps to reproduce:

Reviewing the JSONParser implementation revealed a couple of issues:
- trailing commas in object and array literals are allowed (invalid per spec)
- invalid number literals are allowed
- invalid unicode escape sequences are not detected


Actual results:

No errors were reported by the JSONParser class, that means the expected errors in the JUnit test did not match.


Expected results:

The provided JUnit test case should pass without any errors.
(Reporter)

Comment 2

3 years ago
PR was merged.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.