Closed Bug 743351 Opened 8 years ago Closed 8 years ago
.Script should provide a 'static Level' accessor
For sorting through the various scripts covering a given source location, it can be helpful to know each script's static level --- the number of function bodies it's nested within. To this end, Debugger.Script instances should have a 'staticLevel' accesssor. Draft documentation here: https://github.com/jimblandy/DebuggerDocs/blob/script-staticLevel/debug-api
This might not have been the most important thing to do today. :( But it's done!
Attachment #613011 - Flags: review?(jorendorff)
Comment on attachment 613011 [details] [diff] [review] Implement Debugger.Script.prototype.staticLevel. This is kind of an unattractive concept to add to scripts, but practicality beats purity.
Attachment #613011 - Flags: review?(jorendorff) → review+
Comment on attachment 613011 [details] [diff] [review] Implement Debugger.Script.prototype.staticLevel. Oh, one thing: >+test("evil = eval; eval('evil(\\\'debugger;\\\');');", 0); // I really must disagree. I don't get the joke.
(In reply to Jason Orendorff [:jorendorff] from comment #4) > I don't get the joke. Clarified.
Assignee: jimb → nobody
QA Contact: general → jemalloc
Assignee: nobody → jimb
QA Contact: jemalloc → general
Target Milestone: --- → mozilla14
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.