| Index: tests/corelib/core_runtime_types_test.dart
|
| diff --git a/tests/corelib/core_runtime_types_test.dart b/tests/corelib/core_runtime_types_test.dart
|
| index e3d94ce2cbf75fc17029af6b41196a092506341a..d1733bd1d04cf1a2cee41eda757b8060bda9faee 100644
|
| --- a/tests/corelib/core_runtime_types_test.dart
|
| +++ b/tests/corelib/core_runtime_types_test.dart
|
| @@ -45,10 +45,16 @@ class CoreRuntimeTypesTest {
|
| }
|
|
|
| static assertTypeError(void f()) {
|
| - Expect.throws(f, (exception) => (exception is TypeError) ||
|
| - (exception is NoSuchMethodError) ||
|
| - (exception is NullPointerException) ||
|
| - (exception is ArgumentError));
|
| + try {
|
| + f();
|
| + } catch (exception) {
|
| + Expect.equals(true, (exception is TypeError) ||
|
| + (exception is NoSuchMethodError) ||
|
| + (exception is NullPointerException) ||
|
| + (exception is ArgumentError));
|
| + return;
|
| + }
|
| + Expect.equals(true, false);
|
| }
|
|
|
| static testBooleanOperators() {
|
|
|