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

Unified Diff: sdk/lib/_internal/lib/js_array.dart

Issue 25931003: Make List.shuffle take an optional Random object to use. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment. Created 7 years, 2 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
« no previous file with comments | « sdk/lib/_internal/lib/interceptors.dart ('k') | sdk/lib/collection/list.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/lib/js_array.dart
diff --git a/sdk/lib/_internal/lib/js_array.dart b/sdk/lib/_internal/lib/js_array.dart
index b6ec0cbd4453d92e8170a17b0863b1781dcfc8de..32c0c8cbc67f760fda7f80c2aa8d5b2fb28ffea0 100644
--- a/sdk/lib/_internal/lib/js_array.dart
+++ b/sdk/lib/_internal/lib/js_array.dart
@@ -243,8 +243,8 @@ class JSArray<E> extends Interceptor implements List<E>, JSIndexable {
IterableMixinWorkaround.sortList(this, compare);
}
- void shuffle() {
- IterableMixinWorkaround.shuffleList(this);
+ void shuffle([Random random]) {
+ IterableMixinWorkaround.shuffleList(this, random);
}
int indexOf(Object element, [int start = 0]) {
« no previous file with comments | « sdk/lib/_internal/lib/interceptors.dart ('k') | sdk/lib/collection/list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698