Le 27 mai 2014 à 17:04, Jasper St. Pierre <jstpie...@mecheye.net> a écrit :

> 
> (...) Namely, the whole ('elements') looks like a method call containing one 
> argument, rather than having a secret hidden argument as its first.
> 

Yes, it was exactly intended to appear as such, making 
`obj.{Object.getOwnPropertyDescriptor}('elements')` similar to 
`obj.hasOwnProperty('elements')`, for instance. If it helps, you could think of 
`foo.{Bar.baz}` as defining a temporary method: `(function(...args) { return 
Bar.baz(this, ...args) })`, or: `Bar.baz.bind(Bar, foo)`.

—Claude

_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to