| Index: sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart b/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
|
| index db55415182e84b9ad8f634441a81c8e36507756f..6c1efd080bcd37905cec337cf1fe5a31a206f81a 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
|
| @@ -725,7 +725,7 @@ class Namer implements ClosureNamer {
|
|
|
| /// Returns the runtime name for [element]. The result is not safe as an id.
|
| String getRuntimeTypeName(Element element) {
|
| - if (identical(element, compiler.dynamicClass)) return 'dynamic';
|
| + if (element == null) return 'dynamic';
|
| return getNameForRti(element);
|
| }
|
|
|
| @@ -910,7 +910,7 @@ class Namer implements ClosureNamer {
|
| }
|
|
|
| String operatorIsType(DartType type) {
|
| - if (type.kind == TypeKind.FUNCTION) {
|
| + if (type.isFunctionType) {
|
| // TODO(erikcorry): Reduce from $isx to ix when we are minifying.
|
| return '${operatorIsPrefix()}_${getFunctionTypeName(type)}';
|
| }
|
|
|