Index: tests/compiler/dart2js_foreign/native_no_such_method_exception3_test.dart |
diff --git a/tests/compiler/dart2js_foreign/native_no_such_method_exception3_test.dart b/tests/compiler/dart2js_foreign/native_no_such_method_exception3_test.dart |
index df215d2d39879f68154de6be27d9993ee094e764..8b96a4f4a9c6ae0eb76d336fcf30b98eed06abbd 100644 |
--- a/tests/compiler/dart2js_foreign/native_no_such_method_exception3_test.dart |
+++ b/tests/compiler/dart2js_foreign/native_no_such_method_exception3_test.dart |
@@ -32,7 +32,7 @@ main() { |
var exception; |
try { |
a.foo(); |
- } catch (NoSuchMethodException e) { |
+ } on NoSuchMethodException catch (e) { |
exception = e; |
} |
Expect.isNotNull(exception); |