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

Unified Diff: include/v8.h

Issue 418383002: Change Has* and Get*Attributes to return Maybe<*>, indicating possible exceptions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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/api.cc » ('j') | src/objects-inl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 6d656430bc17303ec99f3b86e0687b4f99d72471..9cfeed0fd4365e31b3cb0b1e1aa8a9a8c2f18a87 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -895,6 +895,13 @@ struct Maybe {
};
+// Convenience wrapper.
+template <class T>
+inline Maybe<T> maybe(T t) {
+ return Maybe<T>(t);
+}
+
+
// --- Special objects ---
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698