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/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20653

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
method).  

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.3.1 : Wednesday, 8 May 2013 19:30:08 UTC