Index: pkg/compiler/lib/src/types/map_type_mask.dart |
diff --git a/pkg/compiler/lib/src/types/map_type_mask.dart b/pkg/compiler/lib/src/types/map_type_mask.dart |
index a5199962cd5871fe57800d80fa0342de8c423272..1ff8566f8ed7bd60372a078f919ce788ca043aa7 100644 |
--- a/pkg/compiler/lib/src/types/map_type_mask.dart |
+++ b/pkg/compiler/lib/src/types/map_type_mask.dart |
@@ -81,7 +81,7 @@ class MapTypeMask extends ForwardingTypeMask { |
// doesn't need the compiler. |
assert(other.keyType == |
new TypeMask.nonNullExact( |
- closedWorld.backendClasses.stringClass, closedWorld)); |
+ closedWorld.commonElements.jsStringClass, closedWorld)); |
TypeMask newKeyType = keyType.union(other.keyType, closedWorld); |
TypeMask newValueType = |
other.typeMap.values.fold(keyType, (p, n) => p.union(n, closedWorld)); |