فهرست منبع

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

Dan Korostelev 10 سال پیش
والد
کامیت
0bdafec9ba
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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;
 	}