Index: tests/compiler/dart2js/deferred_not_in_main_test.dart |
diff --git a/tests/compiler/dart2js/deferred_not_in_main_test.dart b/tests/compiler/dart2js/deferred_not_in_main_test.dart |
index a2d828ad7d5dd5b53e74640dfa078f9b95f7df8e..5c1bf87312bcc1103e0b140b26ccf221e488219c 100644 |
--- a/tests/compiler/dart2js/deferred_not_in_main_test.dart |
+++ b/tests/compiler/dart2js/deferred_not_in_main_test.dart |
@@ -40,13 +40,14 @@ void main() { |
var outputUnitForElement = compiler.deferredLoadTask.outputUnitForElement; |
var mainOutputUnit = compiler.deferredLoadTask.mainOutputUnit; |
- var classes = compiler.backend.emitter.neededClasses; |
+ var backend = compiler.backend; |
+ var classes = backend.emitter.neededClasses; |
var lib1 = compiler.libraries["memory:lib1.dart"]; |
var lib2 = compiler.libraries["memory:lib2.dart"]; |
var foo1 = lib1.find("foo1"); |
var foo2 = lib2.find("foo2"); |
- var outputClassLists = compiler.backend.emitter.outputClassLists; |
+ var outputClassLists = backend.emitter.outputClassLists; |
Expect.notEquals(mainOutputUnit, outputUnitForElement(foo2)); |
})); |