Commit 10a58904 authored by yangguo's avatar yangguo Committed by Commit bot

Fix debug-debugger.js wrt strict mode.

R=rossberg@chromium.org
BUG=v8:3790
LOG=N

Review URL: https://codereview.chromium.org/813873007

Cr-Commit-Position: refs/heads/master@{#25971}
parent 4de38bfe
...@@ -1887,7 +1887,7 @@ DebugCommandProcessor.prototype.resolveFrameFromScopeDescription_ = ...@@ -1887,7 +1887,7 @@ DebugCommandProcessor.prototype.resolveFrameFromScopeDescription_ =
// Get the frame for which the scope or scopes are requested. // Get the frame for which the scope or scopes are requested.
// With no frameNumber argument use the currently selected frame. // With no frameNumber argument use the currently selected frame.
if (scope_description && !IS_UNDEFINED(scope_description.frameNumber)) { if (scope_description && !IS_UNDEFINED(scope_description.frameNumber)) {
frame_index = scope_description.frameNumber; var frame_index = scope_description.frameNumber;
if (frame_index < 0 || this.exec_state_.frameCount() <= frame_index) { if (frame_index < 0 || this.exec_state_.frameCount() <= frame_index) {
throw new Error('Invalid frame number'); throw new Error('Invalid frame number');
} }
...@@ -1972,7 +1972,7 @@ DebugCommandProcessor.resolveValue_ = function(value_description) { ...@@ -1972,7 +1972,7 @@ DebugCommandProcessor.resolveValue_ = function(value_description) {
var value_mirror = LookupMirror(value_description.handle); var value_mirror = LookupMirror(value_description.handle);
if (!value_mirror) { if (!value_mirror) {
throw new Error("Failed to resolve value by handle, ' #" + throw new Error("Failed to resolve value by handle, ' #" +
mapping.handle + "# not found"); value_description.handle + "# not found");
} }
return value_mirror.value(); return value_mirror.value();
} else if ("stringDescription" in value_description) { } else if ("stringDescription" in value_description) {
...@@ -2127,7 +2127,7 @@ DebugCommandProcessor.prototype.lookupRequest_ = function(request, response) { ...@@ -2127,7 +2127,7 @@ DebugCommandProcessor.prototype.lookupRequest_ = function(request, response) {
// Set 'includeSource' option for script lookup. // Set 'includeSource' option for script lookup.
if (!IS_UNDEFINED(request.arguments.includeSource)) { if (!IS_UNDEFINED(request.arguments.includeSource)) {
includeSource = %ToBoolean(request.arguments.includeSource); var includeSource = %ToBoolean(request.arguments.includeSource);
response.setOption('includeSource', includeSource); response.setOption('includeSource', includeSource);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment