Index: tests/corelib/string_test.dart |
diff --git a/tests/corelib/string_test.dart b/tests/corelib/string_test.dart |
index 0dd8e54cb0e9310fb02d6522aa2eea7ce82c0a08..a5ba35be124f83f3d09f33bf2be7b475587d3cd9 100644 |
--- a/tests/corelib/string_test.dart |
+++ b/tests/corelib/string_test.dart |
@@ -28,7 +28,7 @@ class StringTest { |
bool exception_caught = false; |
try { |
var c = a[20]; // Throw exception. |
- } on IndexOutOfRangeException catch (e) { |
+ } on RangeError catch (e) { |
exception_caught = true; |
} |
Expect.equals(true, exception_caught); |