Explorar o código

unspecify Utf8.sub outside of string range (causes error on Neko)

Nicolas Cannasse %!s(int64=11) %!d(string=hai) anos
pai
achega
98e51052da
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      tests/unit/unitstd/haxe/Utf8.unit.hx

+ 3 - 1
tests/unit/unitstd/haxe/Utf8.unit.hx

@@ -35,4 +35,6 @@ haxe.Utf8.compare(haxe.Utf8.sub(str, 0, 2), "あé") == 0;
 haxe.Utf8.compare(haxe.Utf8.sub(str, 1, 2), "éい") == 0;
 haxe.Utf8.compare(haxe.Utf8.sub(str, 0, 0), "") == 0;
 haxe.Utf8.compare(haxe.Utf8.sub(str, 1, 0), "") == 0;
-haxe.Utf8.compare(haxe.Utf8.sub(str, 9, 0), "") == 0;
+
+// unspecify outside of range Utf8.sub
+// haxe.Utf8.compare(haxe.Utf8.sub(str, 9, 0), "") == 0;