Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: src/api.h

Issue 222163002: Introduce MaybeHandle to police exception checking in handlified code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: renamed to MaybeHandle and added template Throw Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/handles.h » ('j') | src/handles.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.h
diff --git a/src/api.h b/src/api.h
index 128087c895137c876bd62de869ba022a8d074afa..3ebdca74ed6090bb449753e4e6c6adfd32666726 100644
--- a/src/api.h
+++ b/src/api.h
@@ -318,9 +318,7 @@ 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;
- }
+ if (!this->is_null()) handle = *this;
return Utils::OpenHandle(*scope->Escape(Utils::ToLocal(handle)), true);
}
« no previous file with comments | « no previous file | src/handles.h » ('j') | src/handles.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698