Index: include/v8.h |
=================================================================== |
--- include/v8.h (revision 5585) |
+++ include/v8.h (working copy) |
@@ -758,8 +758,9 @@ |
kFunctionName = 1 << 3, |
kIsEval = 1 << 4, |
kIsConstructor = 1 << 5, |
+ kScriptNameOrSourceURL = 1 << 6, |
kOverview = kLineNumber | kColumnOffset | kScriptName | kFunctionName, |
- kDetailed = kOverview | kIsEval | kIsConstructor |
+ kDetailed = kOverview | kIsEval | kIsConstructor | kScriptNameOrSourceURL |
}; |
/** |
@@ -819,6 +820,13 @@ |
Local<String> GetScriptName() const; |
/** |
+ * Returns the name of the resource that contains the script for the |
+ * function for this StackFrame or sourceURL value if the script name |
+ * is undefined and its source ends with //@ sourceURL=... string. |
+ */ |
+ Local<String> GetScriptNameOrSourceURL() const; |
+ |
+ /** |
* Returns the name of the function associated with this stack frame. |
*/ |
Local<String> GetFunctionName() const; |