| Index: tests/compiler/dart2js_foreign/native_missing_method1_test.dart
|
| diff --git a/tests/compiler/dart2js_foreign/native_missing_method1_test.dart b/tests/compiler/dart2js_foreign/native_missing_method1_test.dart
|
| index e750e5a9c17442bc6a68678781a86fee2221bc50..2947247f6d4ef44d78db719b4935d23ba8cffa26 100644
|
| --- a/tests/compiler/dart2js_foreign/native_missing_method1_test.dart
|
| +++ b/tests/compiler/dart2js_foreign/native_missing_method1_test.dart
|
| @@ -19,7 +19,7 @@ class B {
|
| // We need to define a foo method so that Frog sees it. Because it's
|
| // the only occurence of 'foo', Frog does not bother mangling the
|
| // call sites. It thinks all calls will either go to this method, or
|
| - // throw a NoSuchMethodException.
|
| + // throw a NoSuchMethodError.
|
| foo() { return 42; }
|
| }
|
|
|
| @@ -27,22 +27,22 @@ typedContext() {
|
| var things = [ makeA(), new B() ];
|
| A a = things[0];
|
| Expect.throws(() => a.foo(),
|
| - (e) => e is NoSuchMethodException);
|
| + (e) => e is NoSuchMethodError);
|
| Expect.throws(() => a.foo,
|
| - (e) => e is NoSuchMethodException);
|
| + (e) => e is NoSuchMethodError);
|
| Expect.throws(() => a.foo = 4,
|
| - (e) => e is NoSuchMethodException);
|
| + (e) => e is NoSuchMethodError);
|
| }
|
|
|
| untypedContext() {
|
| var things = [ makeA(), new B() ];
|
| var a = things[0];
|
| Expect.throws(() => a.foo(),
|
| - (e) => e is NoSuchMethodException);
|
| + (e) => e is NoSuchMethodError);
|
| Expect.throws(() => a.foo,
|
| - (e) => e is NoSuchMethodException);
|
| + (e) => e is NoSuchMethodError);
|
| Expect.throws(() => a.foo = 4,
|
| - (e) => e is NoSuchMethodException);
|
| + (e) => e is NoSuchMethodError);
|
| }
|
|
|
| main() {
|
|
|