Index: sdk/lib/_internal/compiler/implementation/enqueue.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/enqueue.dart b/sdk/lib/_internal/compiler/implementation/enqueue.dart |
index 1f33ab2a8bd2e6d497b96d3acf4bf4e7a75cf298..3e9921a03a4f18b13a86cacabcb572c90a119463 100644 |
--- a/sdk/lib/_internal/compiler/implementation/enqueue.dart |
+++ b/sdk/lib/_internal/compiler/implementation/enqueue.dart |
@@ -440,8 +440,11 @@ abstract class Enqueuer { |
void registerGetOfStaticFunction(FunctionElement element) { |
registerStaticUse(element); |
- registerInstantiatedClass(compiler.closureClass, |
- compiler.globalDependencies); |
+ if (compiler.closureClass != null) { |
+ // TODO(johnniwinther): Move this to the JavaScript backend. |
+ registerInstantiatedClass(compiler.closureClass, |
+ compiler.globalDependencies); |
+ } |
universe.staticFunctionsNeedingGetter.add(element); |
} |