| 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);
|
| }
|
| }
|
|
|