W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2015

[Bug 22808] Throw if object is constructed without new

From: <bugzilla@jessica.w3.org>
Date: Mon, 09 Feb 2015 17:04:25 +0000
To: public-script-coord@w3.org
Message-ID: <bug-22808-3890-VB7qJHVq0K@http.www.w3.org/Bugs/Public/>

--- Comment #12 from Erik Arvidsson <arv@google.com> ---
(In reply to Boris Zbarsky from comment #11)
> I just looked at ES6 again, and I'd like to see the edits Allen is making to
> the whole [[Call]]/[[Construct]]/@@create setup right now land before we
> change things in IDL here.  Because we're going to need to override
> [[Construct]] to not invoke [[Call]] and whatnot, but the exact interaction
> will depend on exactly what ES looks like.

In ES6, constructor functions created using the class syntax gets marked with
"classConstructor" and in the [[Call]] behavior,


we have

2. If F’s [[FunctionKind]] internal slot is "classConstructor", throw a
TypeError exception.

You are receiving this mail because:
You are on the CC list for the bug.
Received on Monday, 9 February 2015 17:04:30 UTC

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