Chromium Code Reviews| Index: src/debug-delay.js |
| =================================================================== |
| --- src/debug-delay.js (revision 3006) |
| +++ src/debug-delay.js (working copy) |
| @@ -348,7 +348,7 @@ |
| if (!script.sourceColumnStart_) { |
| script.sourceColumnStart_ = new Array(script.lineCount()); |
| } |
| - |
| + |
|
Christian Plesner Hansen
2009/10/02 11:30:38
Maybe disable trailing whitespace stripping?
|
| // Fill cache if needed and get column where the actual source starts. |
| if (IS_UNDEFINED(script.sourceColumnStart_[line])) { |
| script.sourceColumnStart_[line] = |
| @@ -359,11 +359,11 @@ |
| // Convert the line and column into an absolute position within the script. |
| var pos = Debug.findScriptSourcePosition(script, this.line(), column); |
| - |
| + |
| // If the position is not found in the script (the script might be shorter |
| // than it used to be) just ignore it. |
| if (pos === null) return; |
| - |
| + |
| // Create a break point object and set the break point. |
| break_point = MakeBreakPoint(pos, this.line(), this.column(), this); |
| break_point.setIgnoreCount(this.ignoreCount()); |
| @@ -490,7 +490,7 @@ |
| // Returns the character position in a script based on a line number and an |
| // optional position within that line. |
| Debug.findScriptSourcePosition = function(script, opt_line, opt_column) { |
| - var location = script.locationFromLine(opt_line, opt_column); |
| + var location = script.locationFromLine(opt_line, opt_column); |
| return location ? location.position : null; |
| } |
| @@ -942,7 +942,7 @@ |
| o.body = { uncaught: this.uncaught_, |
| exception: MakeMirror(this.exception_) |
| }; |
| - |
| + |
| // Exceptions might happen whithout any JavaScript frames. |
| if (this.exec_state_.frameCount() > 0) { |
| o.body.sourceLine = this.sourceLine(); |
| @@ -1095,7 +1095,7 @@ |
| function ProtocolMessage(request) { |
| // Update sequence number. |
| this.seq = next_response_seq++; |
| - |
| + |
| if (request) { |
| // If message is based on a request this is a response. Fill the initial |
| // response from the request. |
| @@ -1485,7 +1485,7 @@ |
| response.failed('Missing argument "groupId"'); |
| return; |
| } |
| - |
| + |
| var cleared_break_points = []; |
| var new_script_break_points = []; |
| for (var i = 0; i < script_break_points.length; i++) { |
| @@ -1601,7 +1601,7 @@ |
| if (index < 0 || this.exec_state_.frameCount() <= index) { |
| return response.failed('Invalid frame number'); |
| } |
| - |
| + |
| this.exec_state_.setSelectedFrame(request.arguments.number); |
| } |
| response.body = this.exec_state_.frame(); |
| @@ -1631,7 +1631,7 @@ |
| // Get the frame for which the scopes are requested. |
| var frame = this.frameForScopeRequest_(request); |
| - |
| + |
| // Fill all scopes for this frame. |
| var total_scopes = frame.scopeCount(); |
| var scopes = []; |
| @@ -1748,7 +1748,7 @@ |
| includeSource = %ToBoolean(request.arguments.includeSource); |
| response.setOption('includeSource', includeSource); |
| } |
| - |
| + |
| // Lookup handles. |
| var mirrors = {}; |
| for (var i = 0; i < handles.length; i++) { |