| Index: tests/compiler/dart2js_native/native_missing_method1_frog_test.dart
|
| diff --git a/tests/compiler/dart2js_native/native_missing_method1_frog_test.dart b/tests/compiler/dart2js_native/native_missing_method1_frog_test.dart
|
| index 0b3167924accb76f13eeff9d15a79d1877e3c427..af8e24bd813dd3068be9a0e1998396e8b743714e 100644
|
| --- a/tests/compiler/dart2js_native/native_missing_method1_frog_test.dart
|
| +++ b/tests/compiler/dart2js_native/native_missing_method1_frog_test.dart
|
| @@ -17,7 +17,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; }
|
| }
|
|
|
| @@ -25,22 +25,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() {
|
|
|