dart-sdk/sdk
Johnni Winther 91d55ad64d [sdk] Update String.substring to use RangeError.checkValidRange
This improves the runtime error by correctly reporting that the end
index is not within range for `"abcdefgh".substring(5, 2)` instead of
reporting that the start index is invalid.

Change-Id: If6fd0223f311c75fc44fe9123b4b2b070031e6c7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/194240
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-07-07 13:16:57 +00:00
..
bin Add deprecation warning to dartfmt. 2021-06-03 10:11:24 +00:00
lib [sdk] Update String.substring to use RangeError.checkValidRange 2021-07-07 13:16:57 +00:00
api_readme.md Update the API docs readme 2020-01-16 21:23:09 +00:00
BUILD.gn Allow configuring the destination of the SDK in the build output directory 2021-06-29 18:45:29 +00:00