« Bugzilla Issues Index

#808 — __proto__ object intializers and non-object types

Current spec text suggests that this code creates an object with an own property "__proto__".

var o = { __proto__: 100 };

Existing implementation do not create an own property here, and it seems inconsistent with the behaviour of the morally similar:

var o = {};
o.__proto__ = 100;

I believe B3.1.3 should have step 3.c.2 pushed back one tab stop to be 3.d instead.

I buy it.

corrected in rev 12 editor's draft

corrected in rev 12, Nov. 22, 2012 draft