Index: tests/standalone/byte_array_test.dart |
diff --git a/tests/standalone/byte_array_test.dart b/tests/standalone/byte_array_test.dart |
index e23715f5524839b21c2533ce2840bede5c5f35b3..6874ffafb26e537331cbc994b727f0948284ce4d 100644 |
--- a/tests/standalone/byte_array_test.dart |
+++ b/tests/standalone/byte_array_test.dart |
@@ -131,7 +131,7 @@ void testSubArray() { |
Expect.equals(10, array.subByteArray(0, null).lengthInBytes()); |
Expect.equals(10, array.subByteArray().lengthInBytes()); |
testThrowsIndex(function) { |
- Expect.throws(function, (e) => e is IndexOutOfRangeException); |
+ Expect.throws(function, (e) => e is RangeError); |
} |
testThrowsIndex(() => array.subByteArray(0, -1)); |
testThrowsIndex(() => array.subByteArray(1, -1)); |