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. Wes On 8 June 2012 02:57, T.J. Crowder <[email protected]> wrote: > On 8 June 2012 04:28, David Herman <[email protected]> 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 > [email protected] > https://mail.mozilla.org/listinfo/es-discuss > > -- Wesley W. Garland Director, Product Development PageMail, Inc. +1 613 542 2787 x 102
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

