Browse Source

remove JS inlining restrictions

Simon Krajewski 12 năm trước cách đây
mục cha
commit
1127f193fb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      optimizer.ml

+ 1 - 1
optimizer.ml

@@ -382,7 +382,7 @@ let rec type_inline ctx cf f ethis params tret config p force =
 
 		This could be fixed with better post process code cleanup (planed)
 	*)
-	if !cancel_inlining || (Common.platform ctx.com Js && not !force && (init <> None || !has_vars)) then
+	if !cancel_inlining then
 		None
 	else
 		let wrap e =