|
@@ -423,15 +423,17 @@ let rec gen_call ctx e el in_value =
|
|
spr ctx ")";
|
|
spr ctx ")";
|
|
end else begin
|
|
end else begin
|
|
spr ctx "console.log(";
|
|
spr ctx "console.log(";
|
|
- begin match infos.eexpr with
|
|
|
|
|
|
+ let b = match infos.eexpr with
|
|
| TObjectDecl (
|
|
| TObjectDecl (
|
|
("fileName" , { eexpr = (TConst (TString file)) }) ::
|
|
("fileName" , { eexpr = (TConst (TString file)) }) ::
|
|
("lineNumber" , { eexpr = (TConst (TInt line)) }) :: _) ->
|
|
("lineNumber" , { eexpr = (TConst (TInt line)) }) :: _) ->
|
|
- print ctx "\"%s:%i: \" + " file (Int32.to_int line);
|
|
|
|
|
|
+ print ctx "\"%s:%i: \" + (" file (Int32.to_int line);
|
|
|
|
+ true
|
|
| _ ->
|
|
| _ ->
|
|
- ()
|
|
|
|
- end;
|
|
|
|
|
|
+ false
|
|
|
|
+ in
|
|
gen_value ctx e;
|
|
gen_value ctx e;
|
|
|
|
+ if b then spr ctx ")";
|
|
spr ctx ")";
|
|
spr ctx ")";
|
|
end
|
|
end
|
|
| _ ->
|
|
| _ ->
|