Bug 683729: Remove unused variable 'frame' from js::Debugger::onTrap(). r=jorendorff
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 01 Sep 2011 00:10:37 -0700
changeset 76318 dc12ae87f5b92652b1fb49f725d848906d962b1b
parent 76317 893d04548dd91416867f956a981b11cb52aa20ba
child 76319 4e3d2bb73029fe01ba9011dae4f3b88c8d54a39e
push id1624
push userdholbert@mozilla.com
push dateThu, 01 Sep 2011 07:11:05 +0000
treeherdermozilla-inbound@dc12ae87f5b9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorendorff
bugs683729
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 683729: Remove unused variable 'frame' from js::Debugger::onTrap(). r=jorendorff
js/src/vm/Debugger.cpp
--- a/js/src/vm/Debugger.cpp
+++ b/js/src/vm/Debugger.cpp
@@ -866,17 +866,16 @@ Debugger::onTrap(JSContext *cx, Value *v
 
     /* Build list of breakpoint handlers. */
     Vector<Breakpoint *> triggered(cx);
     for (Breakpoint *bp = site->firstBreakpoint(); bp; bp = bp->nextInSite()) {
         if (!triggered.append(bp))
             return JSTRAP_ERROR;
     }
 
-    Value frame = UndefinedValue();
     for (Breakpoint **p = triggered.begin(); p != triggered.end(); p++) {
         Breakpoint *bp = *p;
 
         /* Handlers can clear breakpoints. Check that bp still exists. */
         if (!site || !site->hasBreakpoint(bp))
             continue;
 
         Debugger *dbg = bp->debugger;