W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2014

Re: Making properties of a class unenumerable

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 28 May 2014 12:41:16 -0400
Message-ID: <538611AC.9040208@mit.edu>
To: Anne van Kesteren <annevk@annevk.nl>, public-script-coord <public-script-coord@w3.org>, Allen Wirfs-Brock <allen@wirfs-brock.com>
CC: Andrea Marchesini <baku@mozilla.com>, Ian Hickson <ian@hixie.ch>
On 5/28/14, 10:05 AM, Anne van Kesteren wrote:
> In order to get the same enumeration as before, we'd need to mark all
> members of the object as [[Enumerable]] false.

Specifically, we'd need to mark the methods on Storage.prototype as not 
enumerable.

This is how built-in methods generally behave in ES.  This is not how 
class-defined methods behave in ES6, as far as I can tell.

-Boris
Received on Wednesday, 28 May 2014 16:41:49 UTC

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