Bug 155293 - WebKit returns "object" for "typeof XMLHttpRequest" and "typeof WebSocket" which are clearly constructable.
Summary: WebKit returns "object" for "typeof XMLHttpRequest" and "typeof WebSocket" wh...
Status: RESOLVED DUPLICATE of bug 154038
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-10 02:16 PST by Mark Toller
Modified: 2016-03-10 08:48 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Toller 2016-03-10 02:16:58 PST
typeof WebSocket and XMLHttpRequest is "function" in IE, Firefox and Chrome, WebKit returns "object" here.
Comment 1 Chris Dumez 2016-03-10 08:48:01 PST
Already fixed in Bug 154038. Note however that this has nothing to do with being constructible or not. `typeof Node` returns "function" in all browsers as well but is not constructible.

*** This bug has been marked as a duplicate of bug 154038 ***
Comment 2 Chris Dumez 2016-03-10 08:48:30 PST
You can confirm this by trying a nightly build:
https://nightly.webkit.org