Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1100)

Unified Diff: Source/core/inspector/DebuggerScript.js

Issue 1249013002: DevTools: simplify setScriptSource and restartFrame return values (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed dgozman's comments Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/inspector/InjectedScript.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/DebuggerScript.js
diff --git a/Source/core/inspector/DebuggerScript.js b/Source/core/inspector/DebuggerScript.js
index b77ea992af0f0cd00b3142043e02773aaa4a04f7..67c86f5cdf7d184bbfc5a0d419b3fd161008a334 100644
--- a/Source/core/inspector/DebuggerScript.js
+++ b/Source/core/inspector/DebuggerScript.js
@@ -295,7 +295,7 @@ DebuggerScript.liveEditScriptSource = function(scriptId, newSource, preview)
var changeLog = [];
try {
var result = Debug.LiveEdit.SetScriptSource(scriptToEdit, newSource, preview, changeLog);
- return [0, result];
+ return [0, result.stack_modified];
} catch (e) {
if (e instanceof Debug.LiveEdit.Failure && "details" in e) {
var details = e.details;
@@ -490,7 +490,7 @@ DebuggerScript._frameMirrorToJSCallFrame = function(frameMirror, callerFrame, sc
function restart()
{
- return Debug.LiveEdit.RestartFrame(frameMirror);
+ return frameMirror.restart();
}
function setVariableValue(scopeNumber, variableName, newValue)
« no previous file with comments | « no previous file | Source/core/inspector/InjectedScript.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698