Index: tests/compiler/dart2js/jsinterop/world_test.dart |
diff --git a/tests/compiler/dart2js/jsinterop/world_test.dart b/tests/compiler/dart2js/jsinterop/world_test.dart |
index aab1b1e206e1cb1d9ffa1e1036d73bb0481e839f..6b24ecb6062d69c3569fc52b108b1c486a8d35ad 100644 |
--- a/tests/compiler/dart2js/jsinterop/world_test.dart |
+++ b/tests/compiler/dart2js/jsinterop/world_test.dart |
@@ -91,12 +91,11 @@ $mainSource |
ClosedWorld world = env.closedWorld; |
JavaScriptBackend backend = env.compiler.backend; |
- ClassElement Object_ = |
- registerClass(env.compiler.commonElements.objectClass); |
+ ClassElement Object_ = registerClass(world.commonElements.objectClass); |
ClassElement Interceptor = |
- registerClass(env.compiler.commonElements.jsInterceptorClass); |
+ registerClass(world.commonElements.jsInterceptorClass); |
ClassElement JavaScriptObject = |
- registerClass(env.compiler.commonElements.jsJavaScriptObjectClass); |
+ registerClass(world.commonElements.jsJavaScriptObjectClass); |
ClassElement A = registerClass(env.getElement('A')); |
ClassElement B = registerClass(env.getElement('B')); |
ClassElement C = registerClass(env.getElement('C')); |