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