Bug 860035 - Generate source notes for debugger statement; r=tschneidereit
authorEddy Bruel <ejpbruel@mozilla.com>
Mon, 20 May 2013 14:41:24 -0700
changeset 139581 ee2038f4bf0ba336d9dbd33b08c8db9be62c84fe
parent 139580 34324218177599619094ee365889f9a1f4fe64d0
child 139582 1fef85af5e015695bce2b7410539a48042614d67
push idunknown
push userunknown
push dateunknown
reviewerstschneidereit
bugs860035
milestone24.0a1
Bug 860035 - Generate source notes for debugger statement; r=tschneidereit
js/src/frontend/BytecodeEmitter.cpp
--- a/js/src/frontend/BytecodeEmitter.cpp
+++ b/js/src/frontend/BytecodeEmitter.cpp
@@ -5851,16 +5851,18 @@ frontend::EmitTree(JSContext *cx, Byteco
       case PNK_FALSE:
       case PNK_THIS:
       case PNK_NULL:
         if (Emit1(cx, bce, pn->getOp()) < 0)
             return false;
         break;
 
       case PNK_DEBUGGER:
+        if (!UpdateSourceCoordNotes(cx, bce, pn->pn_pos.begin))
+            return false;
         if (Emit1(cx, bce, JSOP_DEBUGGER) < 0)
             return false;
         break;
 
       case PNK_NOP:
         JS_ASSERT(pn->getArity() == PN_NULLARY);
         break;