[Bug 22808] Throw if object is constructed without new

https://www.w3.org/Bugs/Public/show_bug.cgi?id=22808

--- Comment #7 from Travis Leithead [MSFT] <travil@microsoft.com> ---
I'm pretty hesitant to make this change without a web-compat analysis. I can
very easily imagine lots and lots of sites that just blindly do:

var x = XMLHttpRequest();
x....

In the past, IE has run a lot of custom code on the web intended just for it.
With IE11, we're starting to run much more of the Firefox/Chrome code, but in
this case, not throwing is more compatible. Switching to a throwing behavior
has generally made compat worse.

If you want to take on the burden of proof, that'd be great. I'm just saying
that I don't think I'd want to be the one to guinea-pig this change.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Monday, 16 September 2013 17:15:56 UTC