瀏覽代碼

lose out of scope propagation for now

catch variables are not hoisted
Simon Krajewski 9 年之前
父節點
當前提交
ff08da01b7
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      analyzer.ml

+ 2 - 2
analyzer.ml

@@ -2027,8 +2027,8 @@ module CopyPropagation = DataFlow(struct
 	let commit ctx =
 		(* We don't care about the scope on JS and AS3 because they hoist var declarations. *)
 		let in_scope bb bb' = match ctx.com.platform with
-			| Js -> true
-			| Flash when Common.defined ctx.com Define.As3 -> true
+(* 			| Js -> true
+			| Flash when Common.defined ctx.com Define.As3 -> true *)
 			| _ -> List.mem (List.hd bb'.bb_scopes) bb.bb_scopes
 		in
 		let rec commit bb e = match e.eexpr with