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

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

Issue 88783002: Isolate.spawn{Uri} only reports errors asynchronously. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix dart2js. Created 7 years, 1 month 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 986ebec06d94620ba6c28520e89836f9ea4b9e4a..80aab2260104d04e96333d6a94c1eb300d11187c 100644
--- a/sdk/lib/_internal/compiler/implementation/enqueue.dart
+++ b/sdk/lib/_internal/compiler/implementation/enqueue.dart
@@ -636,10 +636,15 @@ class ResolutionEnqueuer extends Enqueuer {
} else if (uri == 'dart:async') {
if (element.name == '_createTimer' ||
element.name == '_createPeriodicTimer') {
- // The [:Timer:] class uses the event queue of the isolate
+ // The `Timer` class uses the event queue of the isolate
// library, so we make sure that event queue is generated.
enableIsolateSupport(library);
}
+ } else if (uri == 'dart:_collection-dev' &&
+ element.name == "scheduleImmediate") {
+ // `scheduleImmediate` class uses the event queue of the isolate
+ // library, so we make sure that event queue is generated.
+ enableIsolateSupport(library);
}
}

Powered by Google App Engine
This is Rietveld 408576698