| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 7fe091f35fe7eaa13bf2e01817671f09414b23af..8491d5887682d4fb8cdf5f00a1d451d8e23fdd91 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -1813,13 +1813,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();
|
|
|