src/LiveDevelopment/Agents/GotoAgent.js
function _makeJSTarget(targets, callFrame) {
        var script = ScriptAgent.scriptWithId(callFrame.location.scriptId);
        if (script && script.url) {
            var url = script.url;
            url += ":" + callFrame.location.lineNumber + "," + callFrame.location.columnNumber;
            var name = callFrame.functionName;
            if (name === "") {
                name = "anonymous function";
            }
            var file = _fileFromURL(url);
            targets.push({"type": "js", "url": url, "name": name, "file": file});
        }
    }
function _makeJSTarget(targets, callFrame) {
        var script = ScriptAgent.scriptWithId(callFrame.location.scriptId);
        if (script && script.url) {
            var url = script.url;
            url += ":" + callFrame.location.lineNumber + "," + callFrame.location.columnNumber;
            var name = callFrame.functionName;
            if (name === "") {
                name = "anonymous function";
            }
            var file = _fileFromURL(url);
            targets.push({"type": "js", "url": url, "name": name, "file": file});
        }
    }
function _makeJSTarget ( targets , callFrame ) { var script = ScriptAgent . scriptWithId ( callFrame . location . scriptId ) ; if ( script && script . url ) { var url = script . url ; url += ":" + callFrame . location . lineNumber + "," + callFrame . location . columnNumber ; var name = callFrame . functionName ; if ( name === "" ) { name = "anonymous function" ; } var file = _fileFromURL ( url ) ; targets . push ( { "type" : "js" , "url" : url , "name" : name , "file" : file } ) ; } }
Make the given javascript callFrame the target for goto
@param [] targets array
@param {Debugger.CallFrame} node
Make the given javascript callFrame the target for goto