mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 14:32:24 +00:00
Fix problem introduced with 043c0096ad
.
R=johnniwinther@google.com Review-Url: https://codereview.chromium.org/2931383002 .
This commit is contained in:
parent
080a25f3a6
commit
1f294cbed0
1 changed files with 2 additions and 2 deletions
|
@ -499,8 +499,8 @@ class JsArray<E> extends JsObject with ListMixin<E> {
|
|||
}
|
||||
|
||||
void setRange(int start, int end, Iterable<E> iterable, [int skipCount = 0]) {
|
||||
_checkRange(start, end, length);
|
||||
length = end - start;
|
||||
_checkRange(start, end, this.length);
|
||||
int length = end - start;
|
||||
if (length == 0) return;
|
||||
if (skipCount < 0) throw new ArgumentError(skipCount);
|
||||
var args = [start, length]..addAll(iterable.skip(skipCount).take(length));
|
||||
|
|
Loading…
Reference in a new issue