Index: pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart |
index 44cfc17730e65cb7a7a56a798ca907b8acde5107..78e6886205e491fe72aba767c166592d1324f879 100644 |
--- a/pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart |
@@ -176,8 +176,7 @@ class Emitter implements emitterTask.Emitter { |
return js.js.expressionTemplateFor("$metadataAccess[#]"); |
case JsBuiltin.getType: |
- String typesAccess = _emitter.generateEmbeddedGlobalAccessString(TYPES); |
- return js.js.expressionTemplateFor("$typesAccess[#]"); |
+ return _emitter.templateForReadType; |
default: |
_compiler.internalError(NO_LOCATION_SPANNABLE, |