浏览代码

"Try changing it and see it if still works."

Dan Korostelev 9 年之前
父节点
当前提交
79203b0b78
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/optimization/dce.ml

+ 1 - 1
src/optimization/dce.ml

@@ -57,7 +57,7 @@ let keep_whole_class dce c =
 		| { cl_extern = true }
 		| { cl_path = ["flash";"_Boot"],"RealBoot" } -> true
 		| { cl_path = [],"String" }
-		| { cl_path = [],"Array" } -> not (dce.com.platform = Js)
+		| { cl_path = [],"Array" } -> (match dce.com.platform with Js | Lua -> false | _ -> true)
 		| _ -> false)
 
 let keep_whole_enum dce en =