Index: runtime/vm/parser_test.cc |
diff --git a/runtime/vm/parser_test.cc b/runtime/vm/parser_test.cc |
index 58892279a18bdc217fecd241d558ea0cfd3e356e..fe9230871903c676ec1c529057394661e572575e 100644 |
--- a/runtime/vm/parser_test.cc |
+++ b/runtime/vm/parser_test.cc |
@@ -65,7 +65,7 @@ void CheckField(const Library& lib, |
Function& function = Function::Handle(); |
Field& field = Field::Handle(); |
if (expect_static) { |
- field ^= cls.LookupStaticField(fieldname); |
+ field ^= cls.LookupStaticFieldAllowPrivate(fieldname); |
functionname ^= Field::GetterName(fieldname); |
function ^= cls.LookupStaticFunction(functionname); |
EXPECT(function.IsNull()); |
@@ -73,7 +73,7 @@ void CheckField(const Library& lib, |
function ^= cls.LookupStaticFunction(functionname); |
EXPECT(function.IsNull()); |
} else { |
- field ^= cls.LookupInstanceField(fieldname); |
+ field ^= cls.LookupInstanceFieldAllowPrivate(fieldname); |
functionname ^= Field::GetterName(fieldname); |
function ^= cls.LookupDynamicFunction(functionname); |
EXPECT(!function.IsNull()); |