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

Unified Diff: dart/lib/compiler/implementation/world.dart

Issue 10855125: Ensure supertypes are loaded safely. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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: dart/lib/compiler/implementation/world.dart
diff --git a/dart/lib/compiler/implementation/world.dart b/dart/lib/compiler/implementation/world.dart
index 6a514ba8a144d20f3cc3da7c13d09ad4ddd66379..d6ff5c2301f4d6831d52b905aef71b88642beeea 100644
--- a/dart/lib/compiler/implementation/world.dart
+++ b/dart/lib/compiler/implementation/world.dart
@@ -10,7 +10,7 @@ class World {
void populate(Compiler compiler) {
void addSubtypes(ClassElement cls) {
- if (!cls.isResolved) {
+ if (cls.resolutionState != ClassElement.STATE_DONE) {
compiler.internalErrorOnElement(
cls, 'Class "${cls.name.slowToString()}" is not resolved.');
}

Powered by Google App Engine
This is Rietveld 408576698