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

[Bug 20653] Function object doesn't specify needing a "prototype" property

From: <bugzilla@jessica.w3.org>
Date: Sat, 12 Jan 2013 01:04:00 +0000
To: public-script-coord@w3.org
Message-ID: <bug-20653-3890-Xn3QaswKJU@http.www.w3.org/Bugs/Public/>

Allen Wirfs-Brock <allen@wirfs-brock.com> changed:

           What    |Removed                     |Added
                 CC|                            |allen@wirfs-brock.com

--- Comment #2 from Allen Wirfs-Brock <allen@wirfs-brock.com> ---
But note that even in ES5, built-in functions don't have a prototype property
and are not usable as constructors (they do not have a [[Construct]] internal

In ES6, functions syntactically defined as methods (concise methods in object
literals and class definitions) also will not have a prototype property and are
not usable as constructors. 

I think it would be fine for WebIDL to treat all method like functions in the
same manner as ES6 concise methods.

You are receiving this mail because:
You are on the CC list for the bug.
Received on Saturday, 12 January 2013 01:04:02 UTC

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