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

Unified Diff: Source/bindings/v8/DebuggerScript.js

Issue 54283002: Rename |args| to |info| in V8 bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 | « Source/bindings/v8/CustomElementConstructorBuilder.cpp ('k') | Source/bindings/v8/ScheduledAction.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/DebuggerScript.js
diff --git a/Source/bindings/v8/DebuggerScript.js b/Source/bindings/v8/DebuggerScript.js
index e42c12c9bcc1182c648d7be0286261eda3a2cebe..e8da7a16af6d109da4b28d57bd95636a483f5c10 100644
--- a/Source/bindings/v8/DebuggerScript.js
+++ b/Source/bindings/v8/DebuggerScript.js
@@ -161,22 +161,22 @@ DebuggerScript._formatScript = function(script)
};
}
-DebuggerScript.setBreakpoint = function(execState, args)
+DebuggerScript.setBreakpoint = function(execState, info)
{
- var positionAlignment = args.interstatementLocation ? Debug.BreakPositionAlignment.BreakPosition : Debug.BreakPositionAlignment.Statement;
- var breakId = Debug.setScriptBreakPointById(args.sourceID, args.lineNumber, args.columnNumber, args.condition, undefined, positionAlignment);
+ var positionAlignment = info.interstatementLocation ? Debug.BreakPositionAlignment.BreakPosition : Debug.BreakPositionAlignment.Statement;
+ var breakId = Debug.setScriptBreakPointById(info.sourceID, info.lineNumber, info.columnNumber, info.condition, undefined, positionAlignment);
var locations = Debug.findBreakPointActualLocations(breakId);
if (!locations.length)
return undefined;
- args.lineNumber = locations[0].line;
- args.columnNumber = locations[0].column;
+ info.lineNumber = locations[0].line;
+ info.columnNumber = locations[0].column;
return breakId.toString();
}
-DebuggerScript.removeBreakpoint = function(execState, args)
+DebuggerScript.removeBreakpoint = function(execState, info)
{
- Debug.findBreakPoint(args.breakpointId, true);
+ Debug.findBreakPoint(info.breakpointId, true);
}
DebuggerScript.pauseOnExceptionsState = function()
@@ -262,14 +262,14 @@ DebuggerScript.liveEditScriptSource = function(scriptId, newSource, preview)
}
}
-DebuggerScript.clearBreakpoints = function(execState, args)
+DebuggerScript.clearBreakpoints = function(execState, info)
{
Debug.clearAllBreakPoints();
}
-DebuggerScript.setBreakpointsActivated = function(execState, args)
+DebuggerScript.setBreakpointsActivated = function(execState, info)
{
- Debug.debuggerFlags().breakPointsActive.setValue(args.enabled);
+ Debug.debuggerFlags().breakPointsActive.setValue(info.enabled);
}
DebuggerScript.getScriptSource = function(eventData)
« no previous file with comments | « Source/bindings/v8/CustomElementConstructorBuilder.cpp ('k') | Source/bindings/v8/ScheduledAction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698