// ... proto = Object.freeze({x: 1}); o = Object.create(proto); o.x = 2; // What do you think o.x *should* be? Not what is it currently.
the current behavior is consistent with a view of properties that always desugar to accessors, which is actually a pretty nice way for most JS programmers to understand the programming model.
-
-
The current behavior of when behavior comes from the prototype chain and when it is opted out is inconsistent when talking about configurable descriptors and extensible descriptors. I'd rather it always acted like accessors, or always like anything.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.