Skip to content

Commit

Permalink
catch all exceptions occured in isValid
Browse files Browse the repository at this point in the history
  • Loading branch information
mandel59 committed Jul 22, 2020
1 parent a065335 commit 832ab25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/TestUtf8.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 832ab25

Please sign in to comment.