Index: pkg/compiler/lib/src/js_backend/namer.dart |
diff --git a/pkg/compiler/lib/src/js_backend/namer.dart b/pkg/compiler/lib/src/js_backend/namer.dart |
index 5c51f8405d5f7e24bcf27449230f2880e81e2fd1..ffb780033734ba0cf397ee0142143014fa24eb44 100644 |
--- a/pkg/compiler/lib/src/js_backend/namer.dart |
+++ b/pkg/compiler/lib/src/js_backend/namer.dart |
@@ -636,11 +636,14 @@ class Namer { |
case JsGetName.IS_INDEXABLE_FIELD_NAME: |
return operatorIs(helpers.jsIndexingBehaviorInterface); |
case JsGetName.NULL_CLASS_TYPE_NAME: |
- return runtimeTypeName(commonElements.nullClass); |
+ ClassElement nullClass = commonElements.nullClass; |
+ return runtimeTypeName(nullClass); |
case JsGetName.OBJECT_CLASS_TYPE_NAME: |
- return runtimeTypeName(commonElements.objectClass); |
+ ClassElement objectClass = commonElements.objectClass; |
+ return runtimeTypeName(objectClass); |
case JsGetName.FUNCTION_CLASS_TYPE_NAME: |
- return runtimeTypeName(commonElements.functionClass); |
+ ClassElement functionClass = commonElements.functionClass; |
+ return runtimeTypeName(functionClass); |
default: |
reporter.reportErrorMessage(node, MessageKind.GENERIC, |
{'text': 'Error: Namer has no name for "$name".'}); |