| Index: runtime/vm/exceptions_test.cc
|
| ===================================================================
|
| --- runtime/vm/exceptions_test.cc (revision 1328)
|
| +++ runtime/vm/exceptions_test.cc (working copy)
|
| @@ -35,8 +35,8 @@
|
| Dart_NewString("method2"),
|
| 0,
|
| NULL);
|
| - ASSERT(Dart_IsValid(result));
|
| - ASSERT(Dart_ExceptionOccurred(result));
|
| + ASSERT(Dart_IsError(result));
|
| + ASSERT(Dart_IsUnhandledException(result));
|
| return;
|
| }
|
|
|
| @@ -48,10 +48,10 @@
|
| Dart_NewString("method2"),
|
| 0,
|
| NULL);
|
| - ASSERT(Dart_IsValid(result));
|
| - ASSERT(Dart_ExceptionOccurred(result));
|
| + ASSERT(Dart_IsError(result));
|
| + ASSERT(Dart_IsUnhandledException(result));
|
| Dart_Handle exception = Dart_GetException(result);
|
| - ASSERT(Dart_IsValid(exception));
|
| + ASSERT(!Dart_IsError(exception));
|
| Dart_ThrowException(exception);
|
| UNREACHABLE();
|
| return;
|
|
|