W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2011

Re: [[Call]] behaviour of operations

From: Mark S. Miller <erights@google.com>
Date: Tue, 23 Aug 2011 17:58:34 -0700
Message-ID: <CABHxS9h6btuQq--opb3H8g1N8GocoE5er0s1Heg4dofx9W3RWw@mail.gmail.com>
To: Allen Wirfs-Brock <allen@wirfs-brock.com>
Cc: Cameron McCormack <cam@mcc.id.au>, Geoffrey Sneddon <gsneddon@opera.com>, public-script-coord@w3.org
On Tue, Aug 23, 2011 at 4:20 PM, Allen Wirfs-Brock <allen@wirfs-brock.com>wrote:

> [...] Also, ES consistency for such cases would use the global object of
> the context that the function originated in.

+1. To reemphasize the point I was making earlier, which agrees with Allen's
point above, if these methods simply use *their* global object, independent
of their this-binding, then they can and should simply ignore their
this-binding. If you wish to think of these as functions that are as-if the
result of a .bind(this), feel free to think of it that way. But I would not
recommend trying to describe it that way in the spec language. The specified
behavior of such function should simply not mention "this".

Received on Wednesday, 24 August 2011 00:59:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:04 UTC