Index: pkg/compiler/lib/src/js_backend/backend.dart |
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart |
index 8b61544c84b7d86bb498eceb543dcbd3c27a278e..ce801a9b8414fb83ec11b204a952f63a9ed69dcb 100644 |
--- a/pkg/compiler/lib/src/js_backend/backend.dart |
+++ b/pkg/compiler/lib/src/js_backend/backend.dart |
@@ -1048,7 +1048,7 @@ class JavaScriptBackend extends Backend { |
ClassElement implementation = cls.patch != null ? cls.patch : cls; |
ConstructorElement ctor = implementation.lookupConstructor(name); |
if (ctor == null |
- || (isPrivateName(name) |
+ || (Name.isPrivateName(name) |
&& ctor.library != mapLiteralClass.library)) { |
compiler.internalError(mapLiteralClass, |
"Map literal class $mapLiteralClass missing " |