On Thu, Jun 7, 2012 at 12:05 PM, John J Barton
<johnjbar...@johnjbarton.com> wrote:
> On Thu, Jun 7, 2012 at 11:37 AM, Erik Arvidsson
> <erik.arvids...@gmail.com> wrote:
>> I wrote a new strawman for Error stack which is now available in some
>> form in all major browser (if betas are considered).
>>
>> http://wiki.ecmascript.org/doku.php?id=strawman:error_stack
>>
>> Feedback wanted.
>
> You might look at the Mueller format:
> https://gist.github.com/312a55532fac0296f2ab
>
> Note that the V8 stack is not a property of the error object but
> rather a getter. This is a valuable performance advantage since the
> stack is not converted from C++ array to string until the getter is
> called.

This is well known. Engines can implement lazy data properties too but
maybe that is too magical. I'm fine speccing this as an accessor but
if it is an accessor we should spec it as on Error.prototype and not
on the instance.

> Critical for tools is the ability to linkify the stack trace so we
> need the grammar to allow the URLs to be unambiguously parsable,
> including avoiding content of the error message from interfering.

Agreed and I believe the V8 format fulfills that requirement.

-- 
erik
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to