es-discuss Digest, Vol 52, Issue 117

Brendan Eich brendan at mozilla.com
Mon Jun 20 15:43:47 PDT 2011


On Jun 20, 2011, at 2:51 PM, Peter Michaux wrote:

> By the way, I like this idea that "super" is available all the time
> (not just in an initializer) like "this" is always available; however,
> adding another implicit variable "here" which is dynamic like "this"
> is disconcerting as "this" has been quite a wild beast in JavaScript
> to say the least.

'super' is not dynamic as proposed in http://wiki.ecmascript.org/doku.php?id=harmony:object_initialiser_super. Even in Allen's recent post about Object.defineMethod, 'super' is not bound dynamically per call site, as 'this' is. It's a hidden property of the function object.

/be


More information about the es-discuss mailing list