浏览代码

[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;
 	}