summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/debugger/resources/debugger_shell.js4
-rw-r--r--chrome/test/debugger/test_protocol.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/debugger/resources/debugger_shell.js b/chrome/browser/debugger/resources/debugger_shell.js
index 6c798b4..a3671c3 100644
--- a/chrome/browser/debugger/resources/debugger_shell.js
+++ b/chrome/browser/debugger/resources/debugger_shell.js
@@ -183,7 +183,7 @@ DebugCommand.getSourceLocation = function(script, source, line, func) {
// TODO(erikkay): take column into account as well
if (source)
source = "" + line + ": " + source;
- var location;
+ var location = '';
if (func) {
location = func + ", ";
}
@@ -533,7 +533,7 @@ DebugCommand.responseFrame_ = function(msg) {
body = msg.body;
loc = DebugCommand.getSourceLocation(body.func.script,
body.sourceLineText, body.line, body.func.name);
- print("#" + body.index + " " + loc[0]);
+ print("#" + (body.index <= 9 ? '0' : '') + body.index + " " + loc[0]);
print(loc[1]);
shell_.current_frame = body.index;
shell_.current_line = loc[2];
diff --git a/chrome/test/debugger/test_protocol.js b/chrome/test/debugger/test_protocol.js
index d3dcae8..e4c8d7c 100644
--- a/chrome/test/debugger/test_protocol.js
+++ b/chrome/test/debugger/test_protocol.js
@@ -241,7 +241,7 @@ DebuggerTest.expectedOutput = [
"a = 2",
"$ frame 1",
"< response:frame",
- "#1 g, foo.html",
+ "#01 g, foo.html",
"61: f(1);",
"$ stepout",
"< response:continue",