Skip to content

Commit b5088d9

Browse files
committed
Misc: cleanup
1 parent 9b75678 commit b5088d9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

toplevel/examples/lwt_toplevel/toplevel.ml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,16 +112,17 @@ module Version = struct
112112
end
113113

114114
let setup_toplevel () =
115+
Clflags.debug := true;
115116
JsooTop.initialize ();
116117
Sys.interactive := false;
117118
if Version.compare Version.current [ 4; 07 ] >= 0 then exec' "open Stdlib";
118119
exec'
119120
"module Lwt_main = struct\n\
120-
\ let run t = match Lwt.state t with\n\
121-
\ | Lwt.Return x -> x\n\
122-
\ | Lwt.Fail e -> raise e\n\
123-
\ | Lwt.Sleep -> failwith \"Lwt_main.run: thread didn't return\"\n\
124-
\ end";
121+
\ let run t = match Lwt.state t with\n\
122+
\ | Lwt.Return x -> x\n\
123+
\ | Lwt.Fail e -> raise e\n\
124+
\ | Lwt.Sleep -> failwith \"Lwt_main.run: thread didn't return\"\n\
125+
\ end";
125126
let header1 = Printf.sprintf " %s version %%s" compiler_name in
126127
let header2 =
127128
Printf.sprintf " Compiled with Js_of_ocaml version %s" Sys_js.js_of_ocaml_version

0 commit comments

Comments
 (0)