Index: pkg/compiler/lib/src/enqueue.dart |
diff --git a/pkg/compiler/lib/src/enqueue.dart b/pkg/compiler/lib/src/enqueue.dart |
index 8347f352f79255fcf33e512e9c9309d858f871a4..ce019515969cbbe8dc33c7498148fd94831f19c1 100644 |
--- a/pkg/compiler/lib/src/enqueue.dart |
+++ b/pkg/compiler/lib/src/enqueue.dart |
@@ -230,8 +230,7 @@ class ResolutionEnqueuer extends EnqueuerImpl { |
@override |
void checkQueueIsEmpty() { |
if (_queue.isNotEmpty) { |
- throw new SpannableAssertionFailure( |
- _queue.first.element, "$name queue is not empty."); |
+ failedAt(_queue.first.element, "$name queue is not empty."); |
} |
} |
@@ -435,7 +434,7 @@ class ResolutionEnqueuer extends EnqueuerImpl { |
if (workItem == null) return; |
if (queueIsClosed) { |
- throw new SpannableAssertionFailure( |
+ failedAt( |
entity, "Resolution work list is closed. Trying to add $entity."); |
} |
@@ -452,7 +451,7 @@ class ResolutionEnqueuer extends EnqueuerImpl { |
/// The queue is processed in FIFO order. |
void addDeferredAction(DeferredAction deferredAction) { |
if (queueIsClosed) { |
- throw new SpannableAssertionFailure( |
+ failedAt( |
deferredAction.element, |
"Resolution work list is closed. " |
"Trying to add deferred action for ${deferredAction.element}"); |