File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
toplevel/examples/lwt_toplevel Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -112,16 +112,17 @@ module Version = struct
112112end
113113
114114let 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
You can’t perform that action at this time.
0 commit comments