Index: Source/devtools/front_end/Script.js |
diff --git a/Source/devtools/front_end/Script.js b/Source/devtools/front_end/Script.js |
index 3f19fa4ecd97e15f9f49c2b992f96b94203011dc..4cc14d4586ec70fad800e34ff6f096d54793d1f7 100644 |
--- a/Source/devtools/front_end/Script.js |
+++ b/Source/devtools/front_end/Script.js |
@@ -138,7 +138,7 @@ WebInspector.Script.prototype = { |
/** |
* @param {string} newSource |
- * @param {function(?Protocol.Error, DebuggerAgent.SetScriptSourceError=, !Array.<DebuggerAgent.CallFrame>=, boolean=)} callback |
+ * @param {function(?Protocol.Error, DebuggerAgent.SetScriptSourceError=, !Array.<DebuggerAgent.CallFrame>=, DebuggerAgent.StackTrace=, boolean=)} callback |
*/ |
editSource: function(newSource, callback) |
{ |
@@ -148,21 +148,22 @@ WebInspector.Script.prototype = { |
* @param {DebuggerAgent.SetScriptSourceError=} errorData |
* @param {!Array.<DebuggerAgent.CallFrame>=} callFrames |
* @param {Object=} debugData |
+ * @param {DebuggerAgent.StackTrace=} asyncStackTrace |
*/ |
- function didEditScriptSource(error, errorData, callFrames, debugData) |
+ function didEditScriptSource(error, errorData, callFrames, debugData, asyncStackTrace) |
{ |
// FIXME: support debugData.stack_update_needs_step_in flag by calling WebInspector.debugger_model.callStackModified |
if (!error) |
this._source = newSource; |
var needsStepIn = !!debugData && debugData["stack_update_needs_step_in"] === true; |
- callback(error, errorData, callFrames, needsStepIn); |
+ callback(error, errorData, callFrames, asyncStackTrace, needsStepIn); |
if (!error) |
this.dispatchEventToListeners(WebInspector.Script.Events.ScriptEdited, newSource); |
} |
- if (this.scriptId) { |
- // Script failed to parse. |
+ |
+ if (this.scriptId) |
DebuggerAgent.setScriptSource(this.scriptId, newSource, undefined, didEditScriptSource.bind(this)); |
- } else |
+ else |
callback("Script failed to parse"); |
}, |