Răsfoiți Sursa

[js] use js.Lib.undefined instead of untyped undefined to please the analyzer (not that it matters for this function tho)

Dan Korostelev 10 ani în urmă
părinte
comite
0bdafec9ba
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      std/js/_std/HxOverrides.hx

+ 1 - 1
std/js/_std/HxOverrides.hx

@@ -62,7 +62,7 @@ class HxOverrides {
 	static function cca( s : String, index : Int ) : Null<Int> {
 		var x = (cast s).charCodeAt(index);
 		if( x != x ) // fast isNaN
-			return untyped undefined; // isNaN will still return true
+			return js.Lib.undefined; // isNaN will still return true
 		return x;
 	}