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

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

Issue 12218131: Combine window.setTimeout/setInterval with Timer and Timer.repeating. Also (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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/isolate_helper.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart b/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart
index 54bbdc140c44b724ca5e6aee8cf8bdd7c229f86d..dd8cc310e005580af8f0d3f83b406773415103c6 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart
@@ -1315,6 +1315,7 @@ class TimerImpl implements Timer {
_globalState.topEventLoop.activeTimerCount--;
if (_once) {
JS('void', '#.clearTimeout(#)', globalThis, _handle);
+ JS('void', '#.clearImmediate(#)', globalThis, _handle);
blois 2013/02/13 03:09:24 Is the handle guaranteed to be unique between thes
Emily Fortuna 2013/02/13 20:19:44 Thank you -- yes. I had intended to go back and fi
Emily Fortuna 2013/02/13 20:19:44 No, removed.
} else {
JS('void', '#.clearInterval(#)', globalThis, _handle);
}

Powered by Google App Engine
This is Rietveld 408576698