| 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.
|
|
|