[Webkit-unassigned] [Bug 13646] implement Error.prototype.stack

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 24 05:31:35 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=13646


Christian Plesner Hansen <christian.plesner.hansen at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |christian.plesner.hansen at gm
                   |                            |ail.com




--- Comment #18 from Christian Plesner Hansen <christian.plesner.hansen at gmail.com>  2009-07-24 05:31:32 PDT ---
FYI: In v8, instances of Error now capture the topmost Error.stackTraceLimit
stack frames, 10 by default.  The performance cost of this turned out to be
negligible.

Here's an example of the format:

ReferenceError: FAIL is not defined
   at Constraint.execute (deltablue.js:525:2)
   at Constraint.recalculate (deltablue.js:424:21)
   at Planner.addPropagate (deltablue.js:701:6)
   at Constraint.satisfy (deltablue.js:184:15)
   at Planner.incrementalAdd (deltablue.js:591:21)
   at Constraint.addConstraint (deltablue.js:162:10)
   at Constraint.BinaryConstraint (deltablue.js:346:7)
   at Constraint.EqualityConstraint (deltablue.js:515:38)
   at chainTest (deltablue.js:807:6)
   at deltaBlue (deltablue.js:879:2)

We ended up using a format that is different from firefox' because we have
different information available (for instance we have the receiver type which
they don't whereas they have the arguments which we don't) and because it is
just more readable that way.  It's not set in stone yet though and I hope that
if you decide to implement this in JSC we can agree on compatible formats.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list