Error stack

Alex Vincent ajvincent at
Fri Jun 8 11:51:29 PDT 2012

> ---------- Forwarded message ----------
> From: Erik Arvidsson <erik.arvidsson at>
> To: es-discuss at
> Cc:
> Date: Thu, 7 Jun 2012 11:37:41 -0700
> Subject: Error stack
> 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.

As the person who originally proposed the stack property to Mozilla over
ten years ago, I am absolutely thrilled to see this as a strawman on
Harmony.  In any form.

For reference, the original bug is at .

The only thing I might ask is to keep the ability to alter the stack - in a
controlled way.  Specifically, I've had occasion to want to remove the
first two or three frames of an error stack, because I was implementing an
assert() function.  When the assert failed, I wanted the stack to start at
the actual line of the assert call, instead of a couple of lines away (new
Error(), then the assert function, and then the caller of assert).  That
said, I'd understand if the Harmony working group rejected this and
required the property be read-only and never changeable.

Alex Vincent
"The first step in confirming there is a bug in someone else's work is
confirming there are no bugs in your own."
-- Alexander J. Vincent, June 30, 2001
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list