Changeset 32578 in webkit for trunk/JavaScriptCore/kjs


Ignore:
Timestamp:
Apr 25, 2008, 2:44:24 PM (17 years ago)
Author:
[email protected]
Message:

<rdar://problem/5819422> REGRESSION: Wrong line number passed to -willLeaveCallFrame

Patch by George Dicker and Michael Kahl. Reviewed by Darin.

When -[NSObject(WebScriptDebugDelegate) webView:willLeaveCallFrame:sourceId:line:forWebFrame:]
is invoked, the first line number of the function is returned instead of the last
line number. This regressed in r28458.

  • kjs/nodes.cpp: (KJS::FunctionBodyNodeWithDebuggerHooks::execute): Pass lastLine() instead of lineNo() when calling Debugger::returnEvent().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/nodes.cpp

    r31962 r32578  
    49104910        if (exec->completionType() == Throw)
    49114911            exec->setException(result);
    4912         if (!dbg->returnEvent(exec, sourceId(), lineNo(), exec->function()))
     4912        if (!dbg->returnEvent(exec, sourceId(), lastLine(), exec->function()))
    49134913            return exec->setInterruptedCompletion();
    49144914    }
Note: See TracChangeset for help on using the changeset viewer.