Index: tests/compiler/dart2js/mock_compiler.dart |
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart |
index 2230e247d480a006793bc71cea3b072358867612..928223d8ab43232f8d3cde031c955c3976fbcb74 100644 |
--- a/tests/compiler/dart2js/mock_compiler.dart |
+++ b/tests/compiler/dart2js/mock_compiler.dart |
@@ -148,7 +148,7 @@ class MockCompiler extends Compiler { |
// dynamic invocation the ArgumentTypesRegistry eventually iterates over |
// the interfaces of the Object class which would be 'null' if the class |
// wasn't resolved. |
- ClassElement objectClass = commonElements.objectClass; |
+ ClassElement objectClass = resolution.commonElements.objectClass; |
objectClass.ensureResolved(resolution); |
}).then((_) => uri); |
} |