From 832ab259feefcdee69fac4359c39136e34616be2 Mon Sep 17 00:00:00 2001 From: Ryusei Yamaguchi Date: Wed, 22 Jul 2020 09:21:12 +0900 Subject: [PATCH] catch all exceptions occured in isValid --- test/TestUtf8.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;