Bug 66456

Summary: A Worker constructor should throw TypeError, when the number of arguments is not enough
Product: WebKit Reporter: Kentaro Hara <haraken>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, ap, dominicc, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 65839    
Attachments:
Description Flags
Patch
none
Patch none

Kentaro Hara
Reported 2011-08-18 01:59:55 PDT
Currently, a Worker constructor throws SyntaxError, when the number of arguments is not enough. However, the spec requires TypeError in that case (http://www.w3.org/TR/WebIDL/#es-operations). FYI: This is a part of the patches for bug 65839.
Attachments
Patch (4.26 KB, patch)
2011-08-18 02:04 PDT, Kentaro Hara
no flags
Patch (4.40 KB, patch)
2011-08-18 03:54 PDT, Kentaro Hara
no flags
Kentaro Hara
Comment 1 2011-08-18 02:04:53 PDT
Adam Barth
Comment 2 2011-08-18 02:46:55 PDT
Comment on attachment 104316 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=104316&action=review > Source/WebCore/ChangeLog:8 > + A Worker constructor should throw TypeError, when the number of arguments is not enough > + https://bugs.webkit.org/show_bug.cgi?id=66456 > + > + Reviewed by NOBODY (OOPS!). > + > + Test: fast/workers/worker-constructor.html pls add reference to the spec. thx.
Kentaro Hara
Comment 3 2011-08-18 03:54:46 PDT
Adam Barth
Comment 4 2011-08-18 11:00:05 PDT
Comment on attachment 104319 [details] Patch ok. Your ChangeLog is still minimalistic, but its ok.
WebKit Review Bot
Comment 5 2011-08-18 12:43:25 PDT
Comment on attachment 104319 [details] Patch Clearing flags on attachment: 104319 Committed r93336: <http://trac.webkit.org/changeset/93336>
WebKit Review Bot
Comment 6 2011-08-18 12:43:30 PDT
All reviewed patches have been landed. Closing bug.
Alexey Proskuryakov
Comment 7 2011-08-23 11:29:39 PDT
*** Bug 66277 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.