Index: sdk/lib/_internal/js_runtime/lib/js_array.dart |
diff --git a/sdk/lib/_internal/js_runtime/lib/js_array.dart b/sdk/lib/_internal/js_runtime/lib/js_array.dart |
index 51a8fb4dc1ee4eb3eeac3bff547ed79dace4ab5e..1bca949aeb7388b230b1f04b211aa6739fd222f0 100644 |
--- a/sdk/lib/_internal/js_runtime/lib/js_array.dart |
+++ b/sdk/lib/_internal/js_runtime/lib/js_array.dart |
@@ -351,14 +351,14 @@ class JSArray<E> extends Interceptor implements List<E>, JSIndexable { |
checkNull(start); // TODO(ahe): This is not specified but co19 tests it. |
if (start is !int) throw argumentErrorValue(start); |
if (start < 0 || start > length) { |
- throw new RangeError.range(start, 0, length); |
+ throw new RangeError.range(start, 0, length, "start"); |
} |
if (end == null) { |
end = length; |
} else { |
if (end is !int) throw argumentErrorValue(end); |
if (end < start || end > length) { |
- throw new RangeError.range(end, start, length); |
+ throw new RangeError.range(end, start, length, "end"); |
} |
} |
if (start == end) return <E>[]; |