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

Unified Diff: sdk/lib/_internal/lib/collection_dev_patch.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/lib/collection_dev_patch.dart
diff --git a/sdk/lib/_internal/lib/collection_dev_patch.dart b/sdk/lib/_internal/lib/collection_dev_patch.dart
index cd766c48d6fad220319415c7617c135bdbe62373..3ebb7a3967c2d19f62e728752078553eaa9d0e1b 100644
--- a/sdk/lib/_internal/lib/collection_dev_patch.dart
+++ b/sdk/lib/_internal/lib/collection_dev_patch.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
import 'dart:_js_primitives' show printString;
+import 'dart:_isolate_helper' show TimerImpl;
patch class Symbol implements core.Symbol {
patch const Symbol(String name)
@@ -12,3 +13,8 @@ patch class Symbol implements core.Symbol {
patch void printToConsole(String line) {
printString('$line');
}
+
+patch void scheduleImmediate(void callback()) {
+ // TODO(9002): don't use the Timer to enqueue the immediate callback.
+ new TimerImpl(0, callback);
+}

Powered by Google App Engine
This is Rietveld 408576698