Index: pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart |
index 0b37620e0553cd7bb287c79eaf626202a3401f5b..a3f2a13be2d21f9c7f9c20198002425a188d8737 100644 |
--- a/pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart |
@@ -7,6 +7,7 @@ library dart2js.js_emitter.startup_emitter; |
import 'package:js_runtime/shared/embedded_names.dart' show |
JsBuiltin, |
METADATA, |
+ STATIC_FUNCTION_NAME_TO_CLOSURE, |
TYPES; |
import '../program_builder/program_builder.dart' show ProgramBuilder; |
@@ -177,6 +178,11 @@ class Emitter implements emitterTask.Emitter { |
_emitter.generateEmbeddedGlobalAccessString(TYPES); |
return js.js.expressionTemplateFor("$typesAccess[#]"); |
+ case JsBuiltin.createDartClosureFromNameOfStaticFunction: |
+ String functionAccess = _emitter.generateEmbeddedGlobalAccessString( |
+ STATIC_FUNCTION_NAME_TO_CLOSURE); |
+ return js.js.expressionTemplateFor("$functionAccess(#)"); |
+ |
default: |
_compiler.internalError(NO_LOCATION_SPANNABLE, |
"Unhandled Builtin: $builtin"); |