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

Unified Diff: include/v8.h

Issue 2162443002: Add API to create a "remote" instance of a given FunctionTemplate (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 years, 5 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') | no next file with comments »
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 9df6bbb42c44a75d0522ac19b4037b884615180d..4eb7614210fd1fb3120428e65f7c9ed97394f3b9 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -4521,6 +4521,15 @@ class V8_EXPORT FunctionTemplate : public Template {
Local<Context> context);
/**
+ * Similar to Context::NewRemoteContext, this creates an instance that
+ * isn't backed by an actual object.
+ *
+ * The InstanceTemplate of this FunctionTemplate must have access checks with
+ * handlers installed.
+ */
+ V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewRemoteInstance();
+
+ /**
* Set the call-handler callback for a FunctionTemplate. This
* callback is called whenever the function created from this
* FunctionTemplate is called.
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698