Index: tests/compiler/dart2js_foreign/native_exceptions1_test.dart |
diff --git a/tests/compiler/dart2js_foreign/native_exceptions1_test.dart b/tests/compiler/dart2js_foreign/native_exceptions1_test.dart |
index da3c028c108d6918c9e2dfca280bae46651dbffb..0368c5842a857f9f726b18a04e4b2ce5b5e0f0dd 100644 |
--- a/tests/compiler/dart2js_foreign/native_exceptions1_test.dart |
+++ b/tests/compiler/dart2js_foreign/native_exceptions1_test.dart |
@@ -76,7 +76,7 @@ main() { |
bool threw = false; |
try { |
var x = a.op(51); |
- } catch (var e) { |
+ } catch (e) { |
threw = true; |
Expect.equals(100, e.code); |
Expect.isTrue(e is E); |
@@ -94,7 +94,7 @@ main() { |
threw = false; |
try { |
var x = aa.op(51); |
- } catch (E e) { |
+ } on E catch (e) { |
threw = true; |
Expect.equals(100, e.code); |
Expect.isTrue(e is E); |