Bug 28779

Summary: JSON parser accepts trailing comma in array literals
Product: WebKit Reporter: Oliver Hunt <oliver>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Patch v1 ap: review+

Oliver Hunt
Reported 2009-08-27 12:07:28 PDT
JSON.parse("[1,]") succeeds but is invalid per the JSON spec.
Attachments
Patch v1 (3.14 KB, patch)
2009-08-27 12:10 PDT, Oliver Hunt
ap: review+
Oliver Hunt
Comment 1 2009-08-27 12:10:43 PDT
Created attachment 38677 [details] Patch v1
Alexey Proskuryakov
Comment 2 2009-08-27 12:13:24 PDT
Comment on attachment 38677 [details] Patch v1 r=me
Oliver Hunt
Comment 3 2009-08-27 12:15:52 PDT
Committed r47828
Note You need to log in before you can comment on or make changes to this bug.