Index: src/api.h |
diff --git a/src/api.h b/src/api.h |
index 9197bafbc52331785f8d636b732a68e61281ba47..5f19380e65b5011b9f6f8eb67ea7ada51a3ac725 100644 |
--- a/src/api.h |
+++ b/src/api.h |
@@ -308,12 +308,12 @@ OPEN_HANDLE_LIST(DECLARE_OPEN_HANDLE) |
template <class T> |
v8::internal::Handle<T> v8::internal::Handle<T>::EscapeFrom( |
- v8::HandleScope* scope) { |
+ v8::EscapableHandleScope* scope) { |
v8::internal::Handle<T> handle; |
if (!is_null()) { |
handle = *this; |
} |
- return Utils::OpenHandle(*scope->Close(Utils::ToLocal(handle)), true); |
+ return Utils::OpenHandle(*scope->Escape(Utils::ToLocal(handle)), true); |
} |