| Index: src/api-natives.cc
|
| diff --git a/src/api-natives.cc b/src/api-natives.cc
|
| index 2dd0fed0edd536ea77d989abc0d5e7d734a63dee..a9dd29efea56883a6b35faa8f1f920779aebcdfa 100644
|
| --- a/src/api-natives.cc
|
| +++ b/src/api-natives.cc
|
| @@ -43,20 +43,6 @@ MaybeHandle<Object> DefineAccessorProperty(Isolate* isolate,
|
| Handle<Object> getter,
|
| Handle<Object> setter,
|
| PropertyAttributes attributes) {
|
| - if (!getter->IsUndefined()) {
|
| - ASSIGN_RETURN_ON_EXCEPTION(
|
| - isolate, getter,
|
| - InstantiateFunction(isolate,
|
| - Handle<FunctionTemplateInfo>::cast(getter)),
|
| - Object);
|
| - }
|
| - if (!setter->IsUndefined()) {
|
| - ASSIGN_RETURN_ON_EXCEPTION(
|
| - isolate, setter,
|
| - InstantiateFunction(isolate,
|
| - Handle<FunctionTemplateInfo>::cast(setter)),
|
| - Object);
|
| - }
|
| RETURN_ON_EXCEPTION(isolate, JSObject::DefineAccessor(object, name, getter,
|
| setter, attributes),
|
| Object);
|
|
|