Nicolas Cannasse %!s(int64=14) %!d(string=hai) anos
pai
achega
c763a5ec51
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      genjs.ml

+ 1 - 2
genjs.ml

@@ -85,12 +85,11 @@ let rec concat ctx s f = function
 		concat ctx s f l
 
 let fun_block ctx f p =
-	let e = (match f.tf_expr with { eexpr = TBlock [{ eexpr = TBlock _ } as e] } -> e | e -> e) in
 	let e = List.fold_left (fun e (a,c) ->
 		match c with
 		| None | Some TNull -> e
 		| Some c -> Codegen.concat (Codegen.set_default ctx.com a c p) e
-	) e f.tf_args in
+	) f.tf_expr f.tf_args in
 	if ctx.com.debug then
 		Codegen.stack_block ctx.stack ctx.current (fst ctx.curmethod) e
 	else