| Index: tests/compiler/dart2js_extra/deferred/deferred_function_test.dart
|
| diff --git a/tests/compiler/dart2js_extra/deferred/deferred_function_test.dart b/tests/compiler/dart2js_extra/deferred/deferred_function_test.dart
|
| index 09b27f06dcd506c47a9f2703280cdad9a4120e52..5e2de213b3e5f5bd12f82da68c10901d81550c02 100644
|
| --- a/tests/compiler/dart2js_extra/deferred/deferred_function_test.dart
|
| +++ b/tests/compiler/dart2js_extra/deferred/deferred_function_test.dart
|
| @@ -14,7 +14,7 @@ import 'dart:async';
|
|
|
| const lazy = const DeferredLibrary('deferred_function_library');
|
|
|
| -isNoSuchMethodError(e) => e is NoSuchMethodError;
|
| +isError(e) => e is Error;
|
|
|
| readFoo() {
|
| // TODO(ahe): There is a problem with type inference of deferred
|
| @@ -24,8 +24,8 @@ readFoo() {
|
| }
|
|
|
| main() {
|
| - Expect.throws(() { lib.foo('a'); }, isNoSuchMethodError);
|
| - Expect.throws(readFoo, isNoSuchMethodError);
|
| + Expect.throws(() { lib.foo('a'); }, isError);
|
| + Expect.throws(readFoo, isError);
|
| int counter = 0;
|
| asyncStart();
|
| lazy.load().then((bool didLoad) {
|
| @@ -47,6 +47,6 @@ main() {
|
| asyncEnd();
|
| });
|
| Expect.equals(0, counter);
|
| - Expect.throws(() { lib.foo('a'); }, isNoSuchMethodError);
|
| - Expect.throws(readFoo, isNoSuchMethodError);
|
| + Expect.throws(() { lib.foo('a'); }, isError);
|
| + Expect.throws(readFoo, isError);
|
| }
|
|
|