Chromium Code Reviews| Index: runtime/lib/byte_array.dart |
| diff --git a/runtime/lib/byte_array.dart b/runtime/lib/byte_array.dart |
| index d4181b83a780cdb7c0dd79b5487814b586dfa89a..92181879086b034f63472d471479e4faf7dba354 100644 |
| --- a/runtime/lib/byte_array.dart |
| +++ b/runtime/lib/byte_array.dart |
| @@ -223,7 +223,8 @@ abstract class _ByteArrayBase { |
| "Cannot add to a non-extendable array"); |
| } |
| - void sort([Comparator compare = Comparable.compare]) { |
| + void sort([int compare(var a, var b)]) { |
| + if (!?compare) compare = Comparable.compare; |
|
floitsch
2012/12/05 17:13:02
compare == null
|
| coreSort(this, compare); |
| } |
| @@ -1767,7 +1768,8 @@ class _ByteArrayViewBase { |
| "Cannot add to a non-extendable array"); |
| } |
| - void sort([Comparator compare = Comparable.compare]) { |
| + void sort([int compare(var a, var b)]) { |
| + if (!?compare) compare = Comparable.compare; |
|
floitsch
2012/12/05 17:13:02
compare == null
|
| coreSort(this, compare); |
| } |