Frozen Date objects?
allen at wirfs-brock.com
Fri Jul 19 08:36:26 PDT 2013
On Jul 19, 2013, at 7:53 AM, Nathan Wall wrote:
> Domenic Denicola wrote:
>> I believe exposing `[[DateValue]]` as a (non-private) symbol-keyed property would do the trick, since `Object.freeze` seems to set all property keys to non-writable/non-configurable.
>> This seems like it would be a backward-compatible change. But it's so simple I imagine it's been discussed before. I await hearing where it falls down...
> Last time I asked, `Object.freeze` & friends don't affect existing symbol properties on an object (though new ones can't be added). I think this is pretty important. Has this changed?
Object.freeze and friends affect all properties in the same way, including symbol keyed properties.
> es-discuss mailing list
> es-discuss at mozilla.org
More information about the es-discuss