Bug 155293

Summary: WebKit returns "object" for "typeof XMLHttpRequest" and "typeof WebSocket" which are clearly constructable.
Product: WebKit Reporter: Mark Toller <mark.toller>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ap, cdumez, j.isorce
Priority: P2    
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

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