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

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

Issue 11866003: Support Timer with 0 millisecond delay in dart2js running in the command line. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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: sdk/lib/_internal/compiler/implementation/lib/async_patch.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/lib/async_patch.dart (revision 16956)
+++ sdk/lib/_internal/compiler/implementation/lib/async_patch.dart (working copy)
@@ -6,9 +6,6 @@
patch class Timer {
patch factory Timer(int milliseconds, void callback(Timer timer)) {
- if (!hasTimer()) {
- throw new UnsupportedError("Timer interface not supported.");
- }
return new TimerImpl(milliseconds, callback);
}
@@ -17,9 +14,6 @@
* [milliseconds] millisecond until cancelled.
*/
patch factory Timer.repeating(int milliseconds, void callback(Timer timer)) {
- if (!hasTimer()) {
- throw new UnsupportedError("Timer interface not supported.");
- }
return new TimerImpl.repeating(milliseconds, callback);
}
}

Powered by Google App Engine
This is Rietveld 408576698