Index: src/debug/mirrors.js |
diff --git a/src/debug/mirrors.js b/src/debug/mirrors.js |
index 5ff3e34955942e40692ccae94860d0f1cf951b54..f205fed4fa5e4537b7d0da1049641e2135fa9750 100644 |
--- a/src/debug/mirrors.js |
+++ b/src/debug/mirrors.js |
@@ -987,6 +987,16 @@ FunctionMirror.prototype.name = function() { |
/** |
+ * Returns the displayName if it is set, otherwise name, otherwise inferred |
+ * name. |
+ * @return {string} Name of the function |
+ */ |
+FunctionMirror.prototype.debugName = function() { |
+ return %FunctionGetDebugName(this.value_); |
+} |
+ |
+ |
+/** |
* Returns the inferred name of the function. |
* @return {string} Name of the function |
*/ |