Where is it specified that new objects are empty, if it is?

Brendan Eich brendan at mozilla.com
Mon Mar 18 09:43:00 PDT 2013


Andreas Rossberg wrote:
> On 16 March 2013 00:00, Kevin Reid<kpreid at google.com>  wrote:
>> I'm doing a little maintenance on SES. Chrome has recently added a new
>> odd behavior:
>>
>>> var o = Object.create(null);
>>> Object.getOwnPropertyNames(o)
>> []
>>> Object.getOwnPropertyDescriptor(o, '__proto__');
>> Object {value: null, writable: true, enumerable: false, configurable: false}
>
> That seems to be the old odd behaviour, not the new. On V8 trunk you
> get 'undefined' for the latter.
>
> In the process of adopting the new __proto__ semantics, we have
> recently changed it to be a magic data property on Object.prototype.
> In a next step, we will make it a proper JS accessor property.

Are you poisoning reflection, or returning poison-pill getter and setter?

/be


More information about the es-discuss mailing list