descriptors and not only own properties gotcha

2014-12-17 Thread Andrea Giammarchi
This is mainly for clarification purpose since I need to handle these objects in a single place. Reading descriptors's description: https://people.mozilla.org/~jorendorff/es6-draft.html#sec-property-descriptor-specification-type and reading how descriptors are retrieved:

Re: descriptors and not only own properties gotcha

2014-12-17 Thread Andrea Giammarchi
Actually simplifying as proposal: does everyone agree that if a descriptor.[[Value]] is own property no further checks on inherited [[Get]] and [[Set]], or generally speaking Accessor Property related checks, should be made ? This would already fix the `Object.prototype.get` or `.set` case since

Re: descriptors and not only own properties gotcha

2014-12-17 Thread Allen Wirfs-Brock
On Dec 17, 2014, at 10:30 AM, Andrea Giammarchi wrote: Actually simplifying as proposal: does everyone agree that if a descriptor.[[Value]] is own property no further checks on inherited [[Get]] and [[Set]], or generally speaking Accessor Property related checks, should be made ? This

Re: What would a 1JS-friendly strict mode look like?

2014-12-17 Thread Axel Rauschmayer
That makes sense, yes. It’s great that we get this chance to clean up things in ECMAScript 6. On 16 Dec 2014, at 16:46, John Barton johnjbar...@google.com wrote: 1JS strict mode would look like modules. jjb -- Dr. Axel Rauschmayer a...@rauschma.de rauschma.de