Function#toString revision: JSDoc comments?

Axel Rauschmayer rauschma at icloud.com
Sat Apr 16 14:48:27 UTC 2016


Regarding this proposal: https://github.com/tc39/Function-prototype-toString-revision <https://github.com/tc39/Function-prototype-toString-revision>

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 rauschma.de
rauschma.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160416/eca018a7/attachment.html>


More information about the es-discuss mailing list