Bug 28779 - JSON parser accepts trailing comma in array literals
Summary: JSON parser accepts trailing comma in array literals
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-27 12:07 PDT by Oliver Hunt
Modified: 2009-08-27 12:15 PDT (History)
0 users

See Also:


Attachments
Patch v1 (3.14 KB, patch)
2009-08-27 12:10 PDT, Oliver Hunt
ap: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Hunt 2009-08-27 12:07:28 PDT
JSON.parse("[1,]") succeeds but is invalid per the JSON spec.
Comment 1 Oliver Hunt 2009-08-27 12:10:43 PDT
Created attachment 38677 [details]
Patch v1
Comment 2 Alexey Proskuryakov 2009-08-27 12:13:24 PDT
Comment on attachment 38677 [details]
Patch v1

r=me
Comment 3 Oliver Hunt 2009-08-27 12:15:52 PDT
Committed r47828