| Index: src/debug/mirrors.js
|
| diff --git a/src/debug/mirrors.js b/src/debug/mirrors.js
|
| index 9bd5cb98da7f74885e311480ea84a983dc27c756..881f303f29dd603466953bb1044f7f2356268360 100644
|
| --- a/src/debug/mirrors.js
|
| +++ b/src/debug/mirrors.js
|
| @@ -1037,6 +1037,15 @@ FunctionMirror.prototype.toText = function() {
|
| };
|
|
|
|
|
| +FunctionMirror.prototype.context = function() {
|
| + if (this.resolved()) {
|
| + if (!this._context)
|
| + this._context = new ContextMirror(%FunctionGetContextData(this.value_));
|
| + return this._context;
|
| + }
|
| +};
|
| +
|
| +
|
| /**
|
| * Mirror object for unresolved functions.
|
| * @param {string} value The name for the unresolved function reflected by this
|
|
|