Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index eddb21e2be579fb1c769b04c179aa1773202349e..89ae2a6536ca331fb8d346b45eafe9484edd6ca9 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -798,7 +798,7 @@ MaybeHandle<Object> Object::GetPropertyWithAccessor( |
// Regular accessor. |
Handle<Object> getter(AccessorPair::cast(*structure)->getter(), isolate); |
- if (getter->IsSpecFunction()) { |
+ if (getter->IsCallable()) { |
// TODO(rossberg): nicer would be to cast to some JSCallable here... |
return Object::GetPropertyWithDefinedGetter( |
receiver, Handle<JSReceiver>::cast(getter)); |
@@ -854,7 +854,7 @@ MaybeHandle<Object> Object::SetPropertyWithAccessor( |
// Regular accessor. |
Handle<Object> setter(AccessorPair::cast(*structure)->setter(), isolate); |
- if (setter->IsSpecFunction()) { |
+ if (setter->IsCallable()) { |
// TODO(rossberg): nicer would be to cast to some JSCallable here... |
return SetPropertyWithDefinedSetter( |
receiver, Handle<JSReceiver>::cast(setter), value); |
@@ -6918,8 +6918,8 @@ MaybeHandle<Object> JSObject::DefineAccessor(Handle<JSObject> object, |
} |
} |
- DCHECK(getter->IsSpecFunction() || getter->IsUndefined() || getter->IsNull()); |
- DCHECK(setter->IsSpecFunction() || setter->IsUndefined() || setter->IsNull()); |
+ DCHECK(getter->IsCallable() || getter->IsUndefined() || getter->IsNull()); |
+ DCHECK(setter->IsCallable() || setter->IsUndefined() || setter->IsNull()); |
// At least one of the accessors needs to be a new value. |
DCHECK(!getter->IsNull() || !setter->IsNull()); |
if (!getter->IsNull()) { |