Chromium Code Reviews| Index: include/v8.h |
| diff --git a/include/v8.h b/include/v8.h |
| index 8efb7c33c532f714277680ab503f4025fe233d80..c3217f81f0c12c9932efee6029ca978a9ff4f1ba 100644 |
| --- a/include/v8.h |
| +++ b/include/v8.h |
| @@ -376,6 +376,9 @@ template <class T> class Persistent : public Handle<T> { |
| template <class S> V8_INLINE(Persistent(S* that)) : Handle<T>(that) { } |
| + template <class S> V8_INLINE(Persistent(Isolate* isolate, Handle<S> that)) |
| + : Handle<T>(New(isolate, that)) { } |
|
dcarney
2013/04/24 13:46:02
Should be a comment here. This is required for ha
|
| + |
| /** |
| * "Casts" a plain handle which is known to be a persistent handle |
| * to a persistent handle. |