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

Unified Diff: lib/isolate/dart2js/compiler_hooks.dart

Issue 10830230: Add Timer implementation for dart2js. Also moves tests to appropriate location. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | lib/isolate/dart2js/isolateimpl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/isolate/dart2js/compiler_hooks.dart
diff --git a/lib/isolate/dart2js/compiler_hooks.dart b/lib/isolate/dart2js/compiler_hooks.dart
index 23759fa85631a4f97c4e2a4c9e9677855f0fcda8..052928a0db926e6c803d480f83ef57fee4ec6530 100644
--- a/lib/isolate/dart2js/compiler_hooks.dart
+++ b/lib/isolate/dart2js/compiler_hooks.dart
@@ -27,6 +27,9 @@ void startRootIsolate(entry) {
// by having a "default" isolate (the first one created).
_globalState.currentContext = rootContext;
+ if (_window != null) {
+ rootContext.eval(() => _setTimerFactoryClosure( _timerFactory));
+ }
rootContext.eval(entry);
_globalState.topEventLoop.run();
}
« no previous file with comments | « no previous file | lib/isolate/dart2js/isolateimpl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698