Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 9eddbb71c5fdbb6611f90c2eb1f9f79091172042..a648fe9e370081c96c516b4926c4b1458f55dac7 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -7145,6 +7145,14 @@ class V8_EXPORT Context { |
size_t context_snapshot_index = 0); |
/** |
+ * Returns an detached global that can be passed into Context::New. |
+ * |
+ * The global template needs to have access checks with handlers installed. |
+ */ |
+ static Local<Object> NewDetachedGlobal(Isolate* isolate, |
+ Local<ObjectTemplate> global_template); |
+ |
+ /** |
* Sets the security token for the context. To access an object in |
* another context, the security tokens must match. |
*/ |