Status: Accepted
Owner: [email protected]
Labels: Type-Bug Priority-Medium Harmony

New issue 3819 by [email protected]: Duplicate __proto__ properties should be a syntax error
https://code.google.com/p/v8/issues/detail?id=3819

http://people.mozilla.org/~jorendorff/es6-draft.html#sec-__proto__-property-names-in-object-initializers

We should report a SyntaxError if there are duplicate __proto__ members in an object literal.

var o = {
  __proto__: {},
  __proto__: {},  // SyntaxError
};

o = {
  __proto__: {},
  "__proto__": {},  // SyntaxError
};

o = {
  get __proto__() {},
  __proto__: {},  // OK
};

o = {
  __proto__() {},
  __proto__: {},  // OK
};


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to