Skip to content

Commit e1c79df

Browse files
committed
more debug info printed
1 parent c496cc7 commit e1c79df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jscomp/core/lam_print.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,12 +383,12 @@ let lambda ppf v =
383383
List.iter
384384
(fun (n, l) ->
385385
if !spc then fprintf ppf "@ " else spc := true;
386-
fprintf ppf "@[<hv 1>case int %i:@ %a@]" n lam l)
386+
fprintf ppf "@[<hv 1>case int %i %S:@ %a@]" n (match sw.sw_names with None -> "" | Some x -> x.consts.(n)) lam l)
387387
sw.sw_consts;
388388
List.iter
389389
(fun (n, l) ->
390390
if !spc then fprintf ppf "@ " else spc := true;
391-
fprintf ppf "@[<hv 1>case tag %i:@ %a@]" n lam l)
391+
fprintf ppf "@[<hv 1>case tag %i %S:@ %a@]" n (match sw.sw_names with None -> "" | Some x -> x.blocks.(n)) lam l)
392392
sw.sw_blocks ;
393393
begin match sw.sw_failaction with
394394
| None -> ()

0 commit comments

Comments
 (0)