Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 7074cc0464c0ddbf61c0ccec301815596ff4d7e5..2ccab5e38384b6c8432b9c246092dea4709fa165 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -1043,10 +1043,16 @@ class V8EXPORT Script { |
/** |
* Returns the script id value. |
+ * DEPRECATED: Please use GetId(). |
*/ |
Local<Value> Id(); |
/** |
+ * Returns the script id. |
+ */ |
+ int GetId(); |
+ |
+ /** |
* Associate an additional data object with the script. This is mainly used |
* with the debugger as this data object is only available through the |
* debugger API. |
@@ -1063,6 +1069,8 @@ class V8EXPORT Script { |
* -1 will be returned if no information available. |
*/ |
int GetLineNumber(int code_pos); |
+ |
+ static const int kNoScriptId = 0; |
}; |
@@ -2347,7 +2355,18 @@ class V8EXPORT Function : public Object { |
* kLineOffsetNotFound if no information available. |
*/ |
int GetScriptColumnNumber() const; |
+ |
+ /** |
+ * Returns scriptId object. |
+ * DEPRECATED: use ScriptId() instead. |
+ */ |
Handle<Value> GetScriptId() const; |
+ |
+ /** |
+ * Returns scriptId. |
+ */ |
+ int ScriptId() const; |
+ |
ScriptOrigin GetScriptOrigin() const; |
V8_INLINE(static Function* Cast(Value* obj)); |
static const int kLineOffsetNotFound; |