Bug 103221 - [JSC] FormData.append() should throw if the number of arguments is insufficient
Summary: [JSC] FormData.append() should throw if the number of arguments is insufficient
Status: RESOLVED DUPLICATE of bug 84650
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL: http://xhr.spec.whatwg.org/#interface...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-26 00:25 PST by Chris Dumez
Modified: 2012-11-26 00:27 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 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.
Comment 1 Kentaro Hara 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 ***