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

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

Issue 11574032: Make unit testing of the compiler work with the new isolate helper library. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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/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);

Powered by Google App Engine
This is Rietveld 408576698