From f545bfc7e20cd4308f66e8ae86a734378731717d Mon Sep 17 00:00:00 2001 From: Till Schneidereit Date: Wed, 27 Mar 2013 15:39:25 +0100 Subject: [PATCH] Bug 853417 - add comment explaining why we don't need to check for self-hosted scripts in ScriptDebugEpilogue. r=me --- js/src/jsdbgapi.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/js/src/jsdbgapi.cpp b/js/src/jsdbgapi.cpp index 319912c57bf..ed234cd8c62 100644 --- a/js/src/jsdbgapi.cpp +++ b/js/src/jsdbgapi.cpp @@ -122,6 +122,7 @@ js::ScriptDebugEpilogue(JSContext *cx, AbstractFramePtr frame, bool okArg) JS_ASSERT_IF(frame.isStackFrame(), frame.asStackFrame() == cx->fp()); JSBool ok = okArg; + // We don't add hook data for self-hosted scripts, so we don't need to check for them, here. if (void *hookData = frame.maybeHookData()) { if (frame.isFramePushedByExecute()) { if (JSInterpreterHook hook = cx->runtime->debugHooks.executeHook)