Bug 103221

Summary: [JSC] FormData.append() should throw if the number of arguments is insufficient
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebCore Misc.Assignee: Chris Dumez <cdumez>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: haraken, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://xhr.spec.whatwg.org/#interface-formdata

Chris Dumez
Reported 2012-11-26 00:25:10 PST
According to specification (http://xhr.spec.whatwg.org/#interface-formdata), FormData.append() takes at least 2 arguments. The JSC custom implementation of FormData.append() currently does nothing if less than 2 arguments are provided. I believe we should throw a SyntaxError in this case. Note that the V8 custom implementation is already throwing a SyntaxError in this case so this would make them behave consistently. Also note that Firefox and Opera are throwing an exception for this case as well.
Attachments
Kentaro Hara
Comment 1 2012-11-26 00:27:56 PST
sorry, I fogot to land a patch... see the discussion in bug 84650 *** This bug has been marked as a duplicate of bug 84650 ***
Note You need to log in before you can comment on or make changes to this bug.