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

Unified Diff: Source/WebCore/bindings/js/ScriptDebugServer.cpp

Issue 9371015: Merge 106468 - Web Inspector: debugger reports wrong sources when paused in inline script on page... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 10 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
Index: Source/WebCore/bindings/js/ScriptDebugServer.cpp
===================================================================
--- Source/WebCore/bindings/js/ScriptDebugServer.cpp (revision 107226)
+++ Source/WebCore/bindings/js/ScriptDebugServer.cpp (working copy)
@@ -242,7 +242,7 @@
int sourceLength = script.source.length();
int lineCount = 1;
int lastLineStart = 0;
- for (int i = 0; i < sourceLength - 1; ++i) {
+ for (int i = 0; i < sourceLength; ++i) {
if (script.source[i] == '\n') {
lineCount += 1;
lastLineStart = i + 1;

Powered by Google App Engine
This is Rietveld 408576698