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 1627233002: Add v8::Object::CreationContext that works for a persistent handle (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 | « no previous file | no next file » | 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 703963aba128c7b17461b692e6befb448335d1d0..68be06731d0fa0f8d399340f6f0f477d164843da 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -2947,6 +2947,12 @@ class V8_EXPORT Object : public Value {
*/
Local<Context> CreationContext();
+ /** Same as above, but works for Persistents */
+ V8_INLINE static Local<Context> CreationContext(
+ const PersistentBase<Object>& object) {
+ return object.val_->CreationContext();
+ }
+
/**
* Checks whether a callback is set by the
* ObjectTemplate::SetCallAsFunctionHandler method.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698