W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2013

[Bug 22808] Throw if object is constructed without new

From: <bugzilla@jessica.w3.org>
Date: Mon, 16 Sep 2013 17:15:54 +0000
To: public-script-coord@w3.org
Message-ID: <bug-22808-3890-AKLROrCnod@http.www.w3.org/Bugs/Public/>

--- 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();

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:18 UTC