Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 831e0135018a291b06ccd61d17808a74e0e31a2d..42671c39c4f7ef55ca2c2efeb99f38ffdacd1256 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -2364,9 +2364,10 @@ class JSObject: public JSReceiver { |
// Retrieves an AccessorPair property from the given object. Might return |
// undefined if the property doesn't exist or is of a different kind. |
- static Handle<Object> GetAccessor(Handle<JSObject> object, |
- Handle<Name> name, |
- AccessorComponent component); |
+ MUST_USE_RESULT static MaybeHandle<Object> GetAccessor( |
+ Handle<JSObject> object, |
+ Handle<Name> name, |
+ AccessorComponent component); |
// Defines an AccessorPair property on the given object. |
// TODO(mstarzinger): Rename to SetAccessor() and return empty handle on |
@@ -2379,8 +2380,9 @@ class JSObject: public JSReceiver { |
v8::AccessControl access_control = v8::DEFAULT); |
// Defines an AccessorInfo property on the given object. |
- static Handle<Object> SetAccessor(Handle<JSObject> object, |
- Handle<AccessorInfo> info); |
+ MUST_USE_RESULT static MaybeHandle<Object> SetAccessor( |
+ Handle<JSObject> object, |
+ Handle<AccessorInfo> info); |
MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithInterceptor( |
Handle<JSObject> object, |
@@ -2658,7 +2660,8 @@ class JSObject: public JSReceiver { |
bool ReferencesObject(Object* obj); |
// Disalow further properties to be added to the object. |
- static Handle<Object> PreventExtensions(Handle<JSObject> object); |
+ MUST_USE_RESULT static MaybeHandle<Object> PreventExtensions( |
+ Handle<JSObject> object); |
// ES5 Object.freeze |
MUST_USE_RESULT static MaybeHandle<Object> Freeze(Handle<JSObject> object); |
@@ -2938,8 +2941,9 @@ class JSObject: public JSReceiver { |
static Handle<Object> DeletePropertyPostInterceptor(Handle<JSObject> object, |
Handle<Name> name, |
DeleteMode mode); |
- static Handle<Object> DeletePropertyWithInterceptor(Handle<JSObject> object, |
- Handle<Name> name); |
+ MUST_USE_RESULT static MaybeHandle<Object> DeletePropertyWithInterceptor( |
+ Handle<JSObject> object, |
+ Handle<Name> name); |
// Deletes the named property in a normalized object. |
static Handle<Object> DeleteNormalizedProperty(Handle<JSObject> object, |