Chromium Code Reviews| Index: runtime/vm/unit_test.h |
| =================================================================== |
| --- runtime/vm/unit_test.h (revision 1469) |
| +++ runtime/vm/unit_test.h (working copy) |
| @@ -252,7 +252,7 @@ |
| }; |
| #define EXPECT_VALID(handle) \ |
| - if (!Dart_IsValid((handle))) { \ |
| + if (Dart_IsError((handle))) { \ |
| dart::Expect(__FILE__, __LINE__).Fail("invalid handle '%s':\n '%s'\n", \ |
| #handle, Dart_GetError(handle)); \ |
| } |