Calling toString on function proxy throws TypeError exception

Claude Pache claude.pache at gmail.com
Tue Oct 27 21:27:46 UTC 2015


> Le 27 oct. 2015 à 18:41, Allen Wirfs-Brock <allen at wirfs-brock.com> a écrit :
> 
> 
> That said, I think it is plausible that the predicate in step 2 of http://tc39.github.io/ecma262/#sec-function.prototype.tostring <http://tc39.github.io/ecma262/#sec-function.prototype.tostring> could be replaced with: IsCallable(func)

Yes please. From a user's point-of-view, it is not clear why implementations treat differently `window.alert` and `document.createElement('object')`. 

—Claude
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20151027/6816333d/attachment.html>


More information about the es-discuss mailing list