Index: pkg/compiler/lib/src/js_backend/constant_emitter.dart |
diff --git a/pkg/compiler/lib/src/js_backend/constant_emitter.dart b/pkg/compiler/lib/src/js_backend/constant_emitter.dart |
index 1bef56394ff9d04d07612f87c7f501678c90fbc0..2773144dbc285b195e1ca13073a83b28f6c2610b 100644 |
--- a/pkg/compiler/lib/src/js_backend/constant_emitter.dart |
+++ b/pkg/compiler/lib/src/js_backend/constant_emitter.dart |
@@ -341,7 +341,7 @@ class ConstantLiteralEmitter |
@override |
jsAst.Expression visitType(TypeConstantValue constant, [_]) { |
DartType type = constant.representedType; |
- String name = namer.runtimeTypeName(type.element); |
+ String name = namer.getRuntimeTypeName(type.element); |
jsAst.Expression typeName = new jsAst.LiteralString("'$name'"); |
return new jsAst.Call(getHelperProperty(backend.getCreateRuntimeType()), |
[typeName]); |