Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: include/v8.h

Issue 106763002: Get information about original function from bound function (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Correct API + add a test Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | test/cctest/test-api.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 815f43db7b2fb392ec521940c3b43821f190196b..e3b2845254f7f20c7b12206ae3ed87e972bbc1f3 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -2665,6 +2665,12 @@ class V8_EXPORT Function : public Object {
*/
int ScriptId() const;
+ /**
+ * Returns the original function if this function is bound, else returns this
yurys 2013/12/12 12:47:15 "...if this function is bound using Function.proto
Alexandra Mikhaylova 2013/12/12 15:53:02 Done.
+ * function.
+ */
+ Local<Function> GetBoundFunction() const;
+
ScriptOrigin GetScriptOrigin() const;
V8_INLINE static Function* Cast(Value* obj);
static const int kLineOffsetNotFound;
« no previous file with comments | « no previous file | src/api.cc » ('j') | test/cctest/test-api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698