erik.arvidsson at gmail.com
Thu Jun 7 12:17:05 PDT 2012
On Thu, Jun 7, 2012 at 12:05 PM, John J Barton
<johnjbarton at johnjbarton.com> wrote:
> On Thu, Jun 7, 2012 at 11:37 AM, Erik Arvidsson
> <erik.arvidsson at 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).
>> Feedback wanted.
> You might look at the Mueller format:
> 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
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.
More information about the es-discuss