| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index 9afe3fc37ceb3d49ad4d77fb5437a277ac0761c4..e899037a1c341b0721fc5cd72acd665857506de4 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -9435,11 +9435,15 @@ RawObject* Library::ResolveName(const String& name) const {
|
| // are not cached. This reduces the size of the the cache.
|
| return obj.raw();
|
| }
|
| - String& accessor_name = String::Handle(Field::GetterName(name));
|
| - obj = LookupLocalObject(accessor_name);
|
| - if (obj.IsNull()) {
|
| - accessor_name = Field::SetterName(name);
|
| + String& accessor_name = String::Handle(Field::LookupGetterSymbol(name));
|
| + if (!accessor_name.IsNull()) {
|
| obj = LookupLocalObject(accessor_name);
|
| + }
|
| + if (obj.IsNull()) {
|
| + accessor_name = Field::LookupSetterSymbol(name);
|
| + if (!accessor_name.IsNull()) {
|
| + obj = LookupLocalObject(accessor_name);
|
| + }
|
| if (obj.IsNull() && !ShouldBePrivate(name)) {
|
| obj = LookupImportedObject(name);
|
| }
|
|
|