Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: sdk/lib/_internal/compiler/implementation/enqueue.dart

Issue 339563002: Remove scanBuiltinLibraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698