Index: pkg/compiler/lib/src/js_backend/runtime_types.dart |
diff --git a/pkg/compiler/lib/src/js_backend/runtime_types.dart b/pkg/compiler/lib/src/js_backend/runtime_types.dart |
index d8bb379a11766142f3e44762b10a41c3887018f4..dfa0813019b1c48bd3be736b1f0e1526139f899f 100644 |
--- a/pkg/compiler/lib/src/js_backend/runtime_types.dart |
+++ b/pkg/compiler/lib/src/js_backend/runtime_types.dart |
@@ -265,8 +265,8 @@ class _RuntimeTypes implements RuntimeTypes { |
// JSArray needs type arguments. |
// TODO(karlklose): make this dependency visible from code. |
if (backend.helpers.jsArrayClass != null) { |
- registerRtiDependency( |
- backend.helpers.jsArrayClass, compiler.commonElements.listClass); |
+ ClassElement listClass = compiler.commonElements.listClass; |
+ registerRtiDependency(backend.helpers.jsArrayClass, listClass); |
} |
// Compute the set of all classes and methods that need runtime type |
// information. |