Closed Bug 686806 Opened 13 years ago Closed 9 years ago

JSONParser parses invalid JSON input

Categories

(Rhino Graveyard :: Core, defect)

head
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: anba, Unassigned)

Details

Attachments

(1 file)

Attached file 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.
PR was merged.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: