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

Unified Diff: src/api.cc

Issue 1653423002: Add the data parameter back to the access check callback (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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 | « include/v8.h ('k') | src/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 0a9d81c2fe63caf2d2bd2f0012db18d214a88fbf..ae0465f03dc803b12aa0f68356e3f8e61b57e77b 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -1449,6 +1449,10 @@ void ObjectTemplate::SetAccessCheckCallback(AccessCheckCallback callback,
cons->set_needs_access_check(true);
}
+void ObjectTemplate::SetAccessCheckCallback(
+ DeprecatedAccessCheckCallback callback, Local<Value> data) {
+ SetAccessCheckCallback(reinterpret_cast<AccessCheckCallback>(callback), data);
+}
void ObjectTemplate::SetAccessCheckCallbacks(
NamedSecurityCallback named_callback,
« no previous file with comments | « include/v8.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698