Chromium Code Reviews| Index: src/debug/mirrors.js |
| diff --git a/src/debug/mirrors.js b/src/debug/mirrors.js |
| index 11f9e485c13be252986a228826de69c9ea83bf5c..624eaf864265991437fde39c9aba267626f9363a 100644 |
| --- a/src/debug/mirrors.js |
| +++ b/src/debug/mirrors.js |
| @@ -2235,6 +2235,7 @@ FrameMirror.prototype.toText = function(opt_locals) { |
| var kScopeDetailsTypeIndex = 0; |
| var kScopeDetailsObjectIndex = 1; |
| +var kScopeDetailsNameIndex = 2; |
|
Yang
2015/09/30 10:55:04
Please add a comment here that these indices corre
kozy
2015/09/30 17:00:18
Done.
|
| function ScopeDetails(frame, fun, index, opt_details) { |
| if (frame) { |
| @@ -2271,6 +2272,14 @@ ScopeDetails.prototype.object = function() { |
| }; |
| +ScopeDetails.prototype.name = function() { |
| + if (!IS_UNDEFINED(this.break_id_)) { |
| + %CheckExecutionState(this.break_id_); |
| + } |
| + return this.details_[kScopeDetailsNameIndex]; |
| +}; |
| + |
| + |
| ScopeDetails.prototype.setVariableValueImpl = function(name, new_value) { |
| var raw_res; |
| if (!IS_UNDEFINED(this.break_id_)) { |