Error stack
Erik Arvidsson
erik.arvidsson at gmail.com
Fri Jun 8 11:25:47 PDT 2012
On Thu, Jun 7, 2012 at 11:57 PM, T.J. Crowder <tj at crowdersoftware.com> wrote:
> On 8 June 2012 04:28, David Herman <dherman at mozilla.com> 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.
There has been some interest in trying to align the existing Error
stack property and this proposal is about that.
Could we provide a new better alternative API? Of course. Feel free to
come up with another proposal.
--
erik
More information about the es-discuss
mailing list