Index: include/v8.h |
=================================================================== |
--- include/v8.h (revision 2003) |
+++ include/v8.h (working copy) |
@@ -2251,6 +2251,13 @@ |
static Local<Context> GetCurrent(); |
/** |
+ * Returns the context of the calling JavaScript code. That is the |
+ * context of the top-most JavaScript frame. If there are no |
+ * JavaScript frames an empty handle is returned. |
+ */ |
+ static Local<Context> GetCalling(); |
+ |
+ /** |
* Sets the security token for the context. To access an object in |
* another context, the security tokens must match. |
*/ |