Bug 853417 - add comment explaining why we don't need to check for self-hosted scripts in ScriptDebugEpilogue. r=me

This commit is contained in:
Till Schneidereit 2013-03-27 15:39:25 +01:00
parent 0c4f3d0849
commit 8c4df9efa0

View File

@ -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)