Commit 768268ad authored by Hixie's avatar Hixie

Workaround to re-enable test

This is a workaround for:
   https://github.com/dart-lang/sdk/issues/25246
parent 7dd28659
......@@ -95,12 +95,11 @@ abstract class Scheduler extends BindingBase {
SchedulingStrategy schedulingStrategy = new DefaultSchedulingStrategy();
final PriorityQueue _taskQueue = new HeapPriorityQueue<_TaskEntry>(
(_TaskEntry e1, _TaskEntry e2) {
// Note that we inverse the priority.
return -e1.priority.compareTo(e2.priority);
}
);
static int _taskSorter (_TaskEntry e1, _TaskEntry e2) {
// Note that we inverse the priority.
return -e1.priority.compareTo(e2.priority);
}
final PriorityQueue _taskQueue = new HeapPriorityQueue<_TaskEntry>(_taskSorter);
/// Whether this scheduler already requested to be called from the event loop.
bool _hasRequestedAnEventLoopCallback = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment