Index: src/handles.h |
diff --git a/src/handles.h b/src/handles.h |
index a7eb31efca959bca1374f4c98c6e81d5262eb155..95fd241be1d7702a75a5a365ba03c4fb51b1547a 100644 |
--- a/src/handles.h |
+++ b/src/handles.h |
@@ -97,6 +97,11 @@ class Handle final : public HandleBase { |
V8_INLINE explicit Handle(T* object) : Handle(object, object->GetIsolate()) {} |
V8_INLINE Handle(T* object, Isolate* isolate) : HandleBase(object, isolate) {} |
+ // XXX Can we be sure that the below is only used when T != S? |
+ template <typename S> |
+ V8_INLINE Handle(S* object, Isolate* isolate) |
adamk
2016/08/25 16:19:43
What is this for?
neis
2016/08/26 09:52:07
I added it to save some typing but I removed it no
|
+ : HandleBase(T::cast(object), isolate) {} |
+ |
// Allocate a new handle for the object, do not canonicalize. |
V8_INLINE static Handle<T> New(T* object, Isolate* isolate); |