Index: sdk/lib/_internal/compiler/implementation/lib/mirrors_patch.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/lib/mirrors_patch.dart b/sdk/lib/_internal/compiler/implementation/lib/mirrors_patch.dart |
index 12365076c5b08ce26e6890eecd18b43d7c88dca3..0baf9a86bb81b4645fd110912e8a065e7054af79 100644 |
--- a/sdk/lib/_internal/compiler/implementation/lib/mirrors_patch.dart |
+++ b/sdk/lib/_internal/compiler/implementation/lib/mirrors_patch.dart |
@@ -82,7 +82,7 @@ class _InstanceMirror extends InstanceMirror { |
var completer = new Completer<InstanceMirror>(); |
// TODO(ahe): [Completer] or [Future] should have API to create a |
// delayed action. Simulating with a [Timer]. |
- new Timer(0, (timer) { |
+ Timer.run(() { |
if (JS('String', 'typeof #', method) == 'function') { |
var result = |
JS('var', '#.apply(#, #)', method, reflectee, jsList); |