Error stack strawman
Gary Guo
nbdd0121 at hotmail.com
Fri Feb 26 02:45:04 UTC 2016
Things became more complicated when considering async & generators.
For async calls as mentioned before somewhere in the thread, only Firefox Nightly build includes histories of the frame, while all other browsers don't. It could be useful to include that in stack trace, but it will then be a special case to a general rule, so not all functions are treated as the same. Also, including this information can be costly.
Similar reasoning about usefulness can be extended to generators & async functions. Shall we include a copy of history frames at the time the function is called? (If we use FF's SavedFrame format, then in this case both `parent` and `asyncParent` will be set) Again, this will be costly as well.
In these two cases, it could be useful to developers if these information are available, but generally these will be costly to collect. Making these optional can be a choice, by simply not including unsupported fields in the returned object. I suppose `isTailCall` can be made optional as well.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160226/4baaf902/attachment.html>
More information about the es-discuss
mailing list