Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 8dabef0d5885448bfdd590c37f88ab4dfe8218a0..ede5b56ea26148a5c6263ad644b455b2f1daf46f 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -3036,6 +3036,9 @@ class V8EXPORT Isolate { |
*/ |
CpuProfiler* GetCpuProfiler(); |
+ /** Returns the context that is on the top of the stack. */ |
+ Local<Context> GetCurrentContext(); |
+ |
private: |
Isolate(); |
Isolate(const Isolate&); |
@@ -3890,9 +3893,9 @@ class V8EXPORT Context { |
/** Returns the last entered context. */ |
static Local<Context> GetEntered(); |
- /** Returns the context that is on the top of the stack. */ |
+ // TODO(svenpanne) Actually deprecate this. |
+ /** Deprecated. Use Isolate::GetCurrentContext instead. */ |
static Local<Context> GetCurrent(); |
- static Local<Context> GetCurrent(Isolate* isolate); |
/** |
* Returns the context of the calling JavaScript code. That is the |