WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
67381
TypeError should be thrown when we call a constructor as a normal function
https://bugs.webkit.org/show_bug.cgi?id=67381
Summary
TypeError should be thrown when we call a constructor as a normal function
Kentaro Hara
Reported
2011-09-01 03:02:52 PDT
Some of V8's custom constructors throw SyntaxError when we call them as a normal function. For example, "FormData()" and "ArrayBuffer()" throw SyntaxError. However, the spec says that this should be TypeError (
http://www.w3.org/TR/WebIDL/#es-interface-call
). JSC's custom constructors are correct.
Attachments
Patch
(22.06 KB, patch)
2011-09-01 03:32 PDT
,
Kentaro Hara
no flags
Details
Formatted Diff
Diff
Patch
(22.13 KB, patch)
2011-09-01 07:36 PDT
,
Kentaro Hara
no flags
Details
Formatted Diff
Diff
Patch
(22.08 KB, patch)
2011-09-01 10:26 PDT
,
Kentaro Hara
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Kentaro Hara
Comment 1
2011-09-01 03:32:15 PDT
Created
attachment 105933
[details]
Patch
WebKit Review Bot
Comment 2
2011-09-01 03:58:07 PDT
Comment on
attachment 105933
[details]
Patch
Attachment 105933
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/9584010
New failing tests: fast/dom/call-a-constructor-as-a-function.html
Kentaro Hara
Comment 3
2011-09-01 07:36:29 PDT
Created
attachment 105959
[details]
Patch
Darin Adler
Comment 4
2011-09-01 09:56:52 PDT
Comment on
attachment 105959
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=105959&action=review
> LayoutTests/ChangeLog:13 > + * platform/mac/fast/dom/call-a-constructor-as-a-function-expected.txt: Added. The test result for JSC.
JSC results should be the default results, not the “Mac” results.
Kentaro Hara
Comment 5
2011-09-01 10:26:06 PDT
Created
attachment 105987
[details]
Patch
Kentaro Hara
Comment 6
2011-09-01 10:27:38 PDT
Comment on
attachment 105959
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=105959&action=review
>> LayoutTests/ChangeLog:13 >> + * platform/mac/fast/dom/call-a-constructor-as-a-function-expected.txt: Added. The test result for JSC. > > JSC results should be the default results, not the “Mac” results.
Moved the result to fast/dom/call-a-constructor-as-a-function-expected.txt
WebKit Review Bot
Comment 7
2011-09-01 16:05:55 PDT
Comment on
attachment 105987
[details]
Patch Clearing flags on attachment: 105987 Committed
r94357
: <
http://trac.webkit.org/changeset/94357
>
WebKit Review Bot
Comment 8
2011-09-01 16:06:00 PDT
All reviewed patches have been landed. Closing bug.
Ryosuke Niwa
Comment 9
2011-09-07 10:18:14 PDT
Rebaselined GTK+ results for it implements PeerConnection.
Ryosuke Niwa
Comment 10
2011-09-07 10:18:55 PDT
Oops, rebaseline was done in
http://trac.webkit.org/changeset/94680
.
Eric Seidel (no email)
Comment 11
2011-09-07 11:43:53 PDT
fast/dom/call-a-constructor-as-a-function.html was made a gtk-only result and is now failing on Mac?
Ryosuke Niwa
Comment 12
2011-09-07 11:49:00 PDT
(In reply to
comment #11
)
> fast/dom/call-a-constructor-as-a-function.html was made a gtk-only result and is now failing on Mac?
Yeah, fixed it in
http://trac.webkit.org/changeset/94684
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug