Index: runtime/lib/event_loop_patch.dart |
diff --git a/tests/compiler/dart2js_extra/deferred/deferred_class_library.dart b/runtime/lib/event_loop_patch.dart |
similarity index 53% |
copy from tests/compiler/dart2js_extra/deferred/deferred_class_library.dart |
copy to runtime/lib/event_loop_patch.dart |
index 97b18ee60e94437f3b610f21d7a9ef1eba337aac..98e9bf2521a3bf195d1340ad5949b3f1813b36b6 100644 |
--- a/tests/compiler/dart2js_extra/deferred/deferred_class_library.dart |
+++ b/runtime/lib/event_loop_patch.dart |
@@ -2,15 +2,9 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-// Imported by deferred_class_test.dart. |
- |
-library deferred_class_library; |
- |
-class MyClass { |
- const MyClass(); |
- |
- foo(x) { |
- print('MyClass.foo($x)'); |
- return (x - 3) ~/ 2; |
+patch class _AsyncRun { |
+ /* patch */ static void _enqueueImmediate(void callback()) { |
+ // TODO(floitsch): don't use the Timer to enqueue the immediate callback. |
siva
2013/03/07 02:39:17
Can we have an issue number associated with this T
floitsch
2013/03/08 20:04:41
Done.
|
+ Timer.run(callback); |
} |
} |