Re:Classes are Expressions
by emehrkay on Thursday June 04, 2015 @02:41PM
(#9661223)
This is cool, could this behavior be mimicked by doing:
[ Parent
| on HN ]
Re:Classes are Expressions
by braythwayt on Thursday June 04, 2015 @02:44PM
(#9661237)
Yes, but you'll also want to use Object.defineProperty to ensure that the property is not enumerable.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Symbol tosses that in "for free."