Index: src/handles.h |
diff --git a/src/handles.h b/src/handles.h |
index 6f26880bcfb5d0ce602b79fc1f49ec40c6312535..1100f5b836bf5b6c27953561a7b239a12668b31a 100644 |
--- a/src/handles.h |
+++ b/src/handles.h |
@@ -287,7 +287,8 @@ class DeferredHandleScope { |
// an object of expected type, or the handle is an error if running out |
// of space or encountering an internal error. |
-Handle<Object> GetProperty(Handle<JSReceiver> obj, const char* name); |
+MUST_USE_RESULT MaybeHandle<Object> GetProperty(Handle<JSReceiver> obj, |
+ const char* name); |
// Get the JS object corresponding to the given script; create it |
// if none exists. |
@@ -317,10 +318,10 @@ enum KeyCollectionType { LOCAL_ONLY, INCLUDE_PROTOS }; |
// Computes the enumerable keys for a JSObject. Used for implementing |
// "for (n in object) { }". |
-Handle<FixedArray> GetKeysInFixedArrayFor(Handle<JSReceiver> object, |
- KeyCollectionType type, |
- bool* threw); |
-Handle<JSArray> GetKeysFor(Handle<JSReceiver> object, bool* threw); |
+MUST_USE_RESULT MaybeHandle<FixedArray> GetKeysInFixedArrayFor( |
+ Handle<JSReceiver> object, |
+ KeyCollectionType type); |
+MUST_USE_RESULT MaybeHandle<JSArray> GetKeysFor(Handle<JSReceiver> object); |
Handle<FixedArray> ReduceFixedArrayTo(Handle<FixedArray> array, int length); |
Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, |
bool cache_result); |