| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 026d8c4f4586955cd025735f33c969f94a3f5f8e..45c6a8e6fe271c804201ceb2d5d6b838221fcd3e 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -1863,13 +1863,9 @@ void JSObject::LookupCallbackSetterInPrototypes(String* name,
|
| pt = pt->GetPrototype()) {
|
| JSObject::cast(pt)->LocalLookupRealNamedProperty(name, result);
|
| if (result->IsProperty()) {
|
| - if (result->IsReadOnly()) {
|
| - result->NotFound();
|
| - return;
|
| - }
|
| - if (result->type() == CALLBACKS) {
|
| - return;
|
| - }
|
| + if (result->type() == CALLBACKS && !result->IsReadOnly()) return;
|
| + // Found non-callback or read-only callback, stop looking.
|
| + break;
|
| }
|
| }
|
| result->NotFound();
|
|
|