standardizing Error.stack or equivalent
Mark Miller
erights at gmail.com
Thu Mar 27 15:06:41 PDT 2014
I wasn't aware that v8 does that. Is this format documented anywhere?
On Thu, Mar 27, 2014 at 2:23 PM, Christian Plesner Hansen <c7n at p5r.org>wrote:
> > js> try { eval("eval('FAIL')"); } catch (x) { print(x.stack); }
> > @typein line 2 > eval line 1 > eval:1:1
> > @typein line 2 > eval:1:1
> > @typein:2:7
>
> I'm unclear on what the problem is with nested evals -- you get
> essentially the same information from v8:
>
> js> try { eval("eval('FAIL')"); } catch (x) { console.log(x.stack); }
> ReferenceError: FAIL is not defined
> at eval (eval at <anonymous> (eval at <anonymous> (repl:1:7)),
> <anonymous>:1:1)
> at eval (eval at <anonymous> (repl:1:7), <anonymous>:1:1)
> at repl:1:7
>
>
> c
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
--
Text by me above is hereby placed in the public domain
Cheers,
--MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140327/c5b2b26f/attachment.html>
More information about the es-discuss
mailing list