Index: sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart (revision 16156) |
+++ sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart (working copy) |
@@ -29,7 +29,7 @@ |
patch class Timer { |
patch factory Timer(int milliseconds, void callback(Timer timer)) { |
- if (!hasWindow()) { |
+ if (!hasTimer()) { |
throw new UnsupportedError("Timer interface not supported."); |
} |
return new TimerImpl(milliseconds, callback); |
@@ -40,7 +40,7 @@ |
* [milliseconds] millisecond until cancelled. |
*/ |
patch factory Timer.repeating(int milliseconds, void callback(Timer timer)) { |
- if (!hasWindow()) { |
+ if (!hasTimer()) { |
throw new UnsupportedError("Timer interface not supported."); |
} |
return new TimerImpl.repeating(milliseconds, callback); |