Index: pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart |
index 9dc93dc59f6c2800881caa1e1ad7333e2376836b..42d0e005c91a4693a389ae29d475bdfea09e9034 100644 |
--- a/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart |
@@ -400,6 +400,13 @@ class Emitter implements js_emitter.Emitter { |
generateEmbeddedGlobalAccessString(embeddedNames.TYPES); |
return jsAst.js.expressionTemplateFor("$typesAccess[#]"); |
+ case JsBuiltin.createDartClosureFromNameOfStaticFunction: |
+ // The global-functions map contains a map from name to tear-off |
+ // getters. |
+ String functionGettersMap = |
+ generateEmbeddedGlobalAccessString(embeddedNames.GLOBAL_FUNCTIONS); |
+ return jsAst.js.expressionTemplateFor("$functionGettersMap[#]()"); |
+ |
default: |
compiler.internalError(NO_LOCATION_SPANNABLE, |
"Unhandled Builtin: $builtin"); |