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+

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