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

Unified Diff: include/v8.h

Issue 2107673003: Add an API to create a detached global object (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 months 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') | src/api-natives.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 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.
*/
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api-natives.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698