Re: Object.getOwnPropertyDescriptor can return just about anything

2014-05-09 Thread Tom Van Cutsem
Rick, It's true that allowing user-invented custom attributes will not break any important existing invariants (except perhaps that all existing descriptors can be assumed not to have any own properties besides the standard attributes. Existing code may depend on that, although it feels highly

Re: Native base64 utility methods

2014-05-09 Thread Brendan Eich
Mathias Bynens wrote: (but it requires `ArrayBuffer` / `Uint8Array`). In ES6, so no problem proposing Text{En,De}coder for ES7. /be ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Object.getOwnPropertyDescriptor can return just about anything

2014-05-09 Thread David Bruant
Le 09/05/2014 08:50, Tom Van Cutsem a écrit : Rick, It's true that allowing user-invented custom attributes will not break any important existing invariants (except perhaps that all existing descriptors can be assumed not to have any own properties besides the standard attributes. Existing

Re: Object.getOwnPropertyDescriptor can return just about anything

2014-05-09 Thread Tom Van Cutsem
2014-05-09 9:57 GMT+02:00 David Bruant bruan...@gmail.com: Just to try to assess the unlikelihood and understand the cases where a ES5 code expectations aren't met: The only case where ES6 and ES5 may diverge is for Object.getOwnPropertyDescriptor where a Proxy may return something that

Re: Object.getOwnPropertyDescriptor can return just about anything

2014-05-09 Thread Mark S. Miller
By the same token, it is feasible to postpone these custom attributes till ES7. My concern is that since the [[Origin]]-oriented proxy proposal that has been in the draft spec was a distracting dead end[1], we should be conservative in returning to the design that preserves the crucial invariants.

Re: ToPropertyDescriptor, [[HasProperty]], [[HasOwnProperty]]

2014-05-09 Thread Allen Wirfs-Brock
On May 8, 2014, at 9:08 PM, Mathias Bynens wrote: On Fri, May 9, 2014 at 1:44 AM, John-David Dalton john.david.dal...@gmail.com wrote: Should I create a spec bug for tracking this? Please do. Even better, submit a strawman proposal allen ___

Re: ToPropertyDescriptor, [[HasProperty]], [[HasOwnProperty]]

2014-05-09 Thread John-David Dalton
Rock, will do. Thanks! - JDD ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: ToPropertyDescriptor, [[HasProperty]], [[HasOwnProperty]]

2014-05-09 Thread Andrea Giammarchi
just wrote this down ... it takes an eye blink to agree with and adopt even in ES6, IMHO https://gist.github.com/WebReflection/48aecb771e61e8a3e168 On Fri, May 9, 2014 at 11:08 AM, John-David Dalton john.david.dal...@gmail.com wrote: Rock, will do. Thanks! - JDD

Re: ToPropertyDescriptor, [[HasProperty]], [[HasOwnProperty]]

2014-05-09 Thread Andrea Giammarchi
also, on top of this ... I'd like to add the fact that es5-sham, the drop in everyone thinks is cool to use to support old browsers not compatible with ES5, is entirely based on own properties since ever: https://github.com/es-shims/es5-shim/blob/master/es5-sham.js#L310 the owns definition in