On 8/12/14, Allen Wirfs-Brock <[email protected]> wrote:
>
> On Aug 12, 2014, at 2:17 PM, Garrett Smith wrote:
>
>> On 8/12/14, Allen Wirfs-Brock <[email protected]> wrote:

[...]

>> | Function.prototype.toString
>> | ...
>> |
>> | The toString function is not generic; it throws a
>> | TypeError exception if its this value does not have
>> | a [[Call]] internal method. Therefore, it cannot be
>> | transferred to other kinds of objects for use as a method.
>
> This is a spec, bug. should probably be expressed as does not have a
> [[Code]] internal slot.
>

What is the [[Code]] for host methods like addEventListener? And what
is the expected result of addEventListener.toString()?

Spec for Function.prototype.toString has never reflected reality for
host methods.

Thanks.
-- 
Garrett
@xkit
ChordCycles.com
garretts.github.io
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to