| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index e88e91aea07b528278009358dbe2e66ff366d928..628a3fb3d1541c6e0c366fc7e32b8cb75dc26164 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -3398,9 +3398,12 @@ static inline bool ObjectSetAccessor(Object* obj,
|
| name, getter, setter, data, settings, attributes, signature);
|
| if (info.is_null()) return false;
|
| bool fast = Utils::OpenHandle(obj)->HasFastProperties();
|
| - i::Handle<i::Object> result =
|
| - i::JSObject::SetAccessor(Utils::OpenHandle(obj), info);
|
| - if (result.is_null() || result->IsUndefined()) return false;
|
| + i::Handle<i::Object> result;
|
| + ASSIGN_RETURN_ON_EXCEPTION_VALUE(
|
| + isolate, result,
|
| + i::JSObject::SetAccessor(Utils::OpenHandle(obj), info),
|
| + false);
|
| + if (result->IsUndefined()) return false;
|
| if (fast) i::JSObject::TransformToFastProperties(Utils::OpenHandle(obj), 0);
|
| return true;
|
| }
|
|
|