| Index: src/api.h
|
| diff --git a/src/api.h b/src/api.h
|
| index 438c4f31dc40967df0208c8ba518f6d83297d077..b20ef5cf66f3cb401875ea40c1a3fca8b3e8045e 100644
|
| --- a/src/api.h
|
| +++ b/src/api.h
|
| @@ -309,6 +309,17 @@
|
|
|
|
|
| template <class T>
|
| +v8::internal::Handle<T> v8::internal::Handle<T>::EscapeFrom(
|
| + v8::EscapableHandleScope* scope) {
|
| + v8::internal::Handle<T> handle;
|
| + if (!is_null()) {
|
| + handle = *this;
|
| + }
|
| + return Utils::OpenHandle(*scope->Escape(Utils::ToLocal(handle)), true);
|
| +}
|
| +
|
| +
|
| +template <class T>
|
| inline T* ToApi(v8::internal::Handle<v8::internal::Object> obj) {
|
| return reinterpret_cast<T*>(obj.location());
|
| }
|
|
|