Chromium Code Reviews| Index: src/debug/mirrors.js |
| diff --git a/src/debug/mirrors.js b/src/debug/mirrors.js |
| index 5ff3e34955942e40692ccae94860d0f1cf951b54..9796c9d4bfa76973f911891edca84daeefb2ccdc 100644 |
| --- a/src/debug/mirrors.js |
| +++ b/src/debug/mirrors.js |
| @@ -987,6 +987,14 @@ FunctionMirror.prototype.name = function() { |
| /** |
| + * Returns the displayName if it is set, otherwise name, otherwise inferred name. |
|
Yang
2015/11/17 06:23:45
Comment goes over 80-char limit.
kozy
2015/11/17 17:15:53
Done.
|
| + */ |
| +FunctionMirror.prototype.debugName = function() { |
| + return %FunctionGetDebugName(this.value_); |
| +} |
| + |
| + |
| +/** |
| * Returns the inferred name of the function. |
| * @return {string} Name of the function |
| */ |