Function#toString revision: JSDoc comments?

Caitlin Potter caitpotter88 at
Sat Apr 16 14:53:31 UTC 2016

How would that interact with angular.js' Function.prototype.toString parsing? Seems like doing that could break some content, even if it were useful

> On Apr 16, 2016, at 10:48 AM, Axel Rauschmayer <rauschma at> wrote:
> Regarding this proposal:
> Wouldn’t it make sense to include a preceding JSDoc-style comment in a function’s (or method’s) `[[SourceText]]` value? Conceptually it is a part of the function and it could be used to implement a REPL `help()` function.
> -- 
> Dr. Axel Rauschmayer
> axel at
> _______________________________________________
> es-discuss mailing list
> es-discuss at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list