diff --git a/test/TestUtf8.hx b/test/TestUtf8.hx index 28418e2..67f0eab 100644 --- a/test/TestUtf8.hx +++ b/test/TestUtf8.hx @@ -45,7 +45,7 @@ class TestUtf8 extends haxe.unit.TestCase { try { var s = Utf8.fromBytes(b); // some targets natively implement proper check and throw exceptions here s.validate(); - } catch (e : Exception) { + } catch (e) { return false; } return true;