Index: src/mirror-debugger.js |
diff --git a/src/mirror-debugger.js b/src/mirror-debugger.js |
index 28b8fc81baa2c067022dfeb67c03303ee3767c29..28ef24de0f2b9c372c9231726bcf295df87aae2a 100644 |
--- a/src/mirror-debugger.js |
+++ b/src/mirror-debugger.js |
@@ -1699,30 +1699,12 @@ FrameMirror.prototype.stepInPositions = function() { |
FrameMirror.prototype.evaluate = function(source, disable_break, |
opt_context_object) { |
- var result_array = %DebugEvaluate(this.break_id_, |
- this.details_.frameId(), |
- this.details_.inlinedFrameIndex(), |
- source, |
- Boolean(disable_break), |
- opt_context_object); |
- // Silently ignore local variables changes if the frame is optimized. |
- if (!this.isOptimizedFrame()) { |
- var local_scope_on_stack = result_array[1]; |
- var local_scope_modifed = result_array[2]; |
- for (var n in local_scope_modifed) { |
- var value_on_stack = local_scope_on_stack[n]; |
- var value_modifed = local_scope_modifed[n]; |
- if (value_on_stack !== value_modifed) { |
- %SetScopeVariableValue(this.break_id_, |
- this.details_.frameId(), |
- this.details_.inlinedFrameIndex(), |
- 0, |
- n, |
- value_modifed); |
- } |
- } |
- } |
- return MakeMirror(result_array[0]); |
+ return MakeMirror(%DebugEvaluate(this.break_id_, |
+ this.details_.frameId(), |
+ this.details_.inlinedFrameIndex(), |
+ source, |
+ Boolean(disable_break), |
+ opt_context_object)); |
}; |