Error stack

Wes Garland wes at
Fri Jun 8 03:53:40 PDT 2012

error.stackFrames, an Array which contains one object per stack frame,
describing function name (if any), filename, line number, some kind of
instance Id (for closures), arguments, and closed-over variables.... would
be absolutely incredible from my POV.

Tie it up in a nice package that can be JSON.stringified, and that SSJS
back-ends can send better debug info back to the browser for the developers
to consume.


On 8 June 2012 02:57, T.J. Crowder <tj at> wrote:

> On 8 June 2012 04:28, David Herman <dherman at> wrote:
>> - You mentioned that compatibility requires error.stack to be a string,
>> even though programs would really like to have a structured version. Should
>> we offer a different property with structured stack frame info (probably
>> with a getter to allow straight-forward lazy construction), called
>> error.stackFrames or error.stackEntries or something?
> Big +1 on that. Avoiding parsing information the engine has as discrete
> items already is a Good Thing(tm). Perhaps it'll be aspirational at first,
> but if specified now it'll happen eventually.
> -- T.J.
> _______________________________________________
> es-discuss mailing list
> es-discuss at

Wesley W. Garland
Director, Product Development
PageMail, Inc.
+1 613 542 2787 x 102
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list