Boris Zbarsky (2014-12-02T15:36:18.000Z)
d at domenic.me (2014-12-19T22:33:35.506Z)
On 12/2/14, 4:59 AM, Andreas Rossberg wrote: > Can you clarify? Do you mean that it should report properties as > configurable, but still reject attempts to actually reconfigure them? Yes, correct. > Also, how would you allow 'var' to even define non-configurable > properties? Because "var" operates on the global directly. The global is a Window, not a WindowProxy and has no magic behavior. > If you want DefineProperty to throw on any such attempt, > then 'var' semantics would somehow have to bypass the MOP. The idea is that WindowProxy's [[DefineOwnProperty]] would throw as needed. Window's [[DefineOwnProperty]] is just http://people.mozilla.org/~jorendorff/es6-draft.html#sec