Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 0b8a3db6f4fc288eae058dcfaf942861ec716cd8..48deb7c61959aa01636b76e129717a11db6753a9 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -5558,7 +5558,10 @@ class V8_EXPORT Isolate { |
/** Returns true if this isolate has a current context. */ |
bool InContext(); |
- /** Returns the context that is on the top of the stack. */ |
+ /** |
+ * Returns the context of the currently running JavaScript, or the context |
+ * on the top of the stack if no JavaScript is running. |
+ */ |
Local<Context> GetCurrentContext(); |
/** |
@@ -5566,9 +5569,12 @@ class V8_EXPORT Isolate { |
* context of the top-most JavaScript frame. If there are no |
* JavaScript frames an empty handle is returned. |
*/ |
- Local<Context> GetCallingContext(); |
+ V8_DEPRECATE_SOON( |
+ "Calling context concept is not compatible with tail calls, and will be " |
+ "removed.", |
+ Local<Context> GetCallingContext()); |
- /** Returns the last entered context. */ |
+ /** Returns the last context entered through V8's C++ API. */ |
Local<Context> GetEnteredContext(); |
/** |