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

Unified Diff: runtime/lib/async_patch.dart

Issue 2684033006: Move _fatal from dart:core to dart:_internal (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | runtime/lib/core_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/async_patch.dart
diff --git a/runtime/lib/async_patch.dart b/runtime/lib/async_patch.dart
index 3e22fb044545fef55933c31361b6ea48c946e976..6cc9a16abac123436bd676170c76cf9a690f3929 100644
--- a/runtime/lib/async_patch.dart
+++ b/runtime/lib/async_patch.dart
@@ -97,8 +97,8 @@ class _AsyncStarStreamController {
// suspend;
// if (controller.isCancelled) return;
bool add(event) {
- if (!onListenReceived) _fatal("yield before stream is listened to!");
- if (isSuspendedAtYield) _fatal("unexpected yield");
+ if (!onListenReceived) fatal("yield before stream is listened to!");
+ if (isSuspendedAtYield) fatal("unexpected yield");
// If stream is cancelled, tell caller to exit the async generator.
if (!controller.hasListener) {
return true;
@@ -115,7 +115,7 @@ class _AsyncStarStreamController {
// Returns true if the caller should terminate
// execution of the generator.
bool addStream(Stream stream) {
- if (!onListenReceived) _fatal("yield before stream is listened to!");
+ if (!onListenReceived) fatal("yield before stream is listened to!");
// If stream is cancelled, tell caller to exit the async generator.
if (!controller.hasListener) return true;
isAdding = true;
« no previous file with comments | « no previous file | runtime/lib/core_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698