···33open Js_top_worker_rpc
44module W = Js_top_worker_client.W
5566-let log s = Firebug.console##log (Js.string s)
66+let log s = Console.console##log (Js.string s)
7788let initialise s callback =
99 let ( let* ) = Lwt_result.bind in
+2
lib/impl.ml
···405405 let phr = Parse.toplevel_phrase l in
406406 Typecore.reset_delayed_checks ();
407407 Env.reset_cache_toplevel ();
408408+ Js_of_ocaml_compiler.Config.set_target `JavaScript;
409409+ Js_of_ocaml_compiler.Config.set_effects_backend `Cps;
408410 let oldenv = !Toploop.toplevel_env in
409411 (* let oldenv = Compmisc.initial_env() in *)
410412 let phr = JsooTopPpx.preprocess_phrase phr in
+5-5
lib/worker.ml
···6677let log fmt =
88 Format.kasprintf
99- (fun s -> Js_of_ocaml.(Firebug.console##log (Js.string s)))
99+ (fun s -> Js_of_ocaml.(Console.console##log (Js.string s)))
1010 fmt
11111212let sync_get url =
···2020 Js.Opt.case
2121 (File.CoerceTo.arrayBuffer x##.response)
2222 (fun () ->
2323- Firebug.console##log (Js.string "Failed to receive file");
2323+ Console.console##log (Js.string "Failed to receive file");
2424 None)
2525 (fun b -> Some (Typed_array.String.of_arrayBuffer b))
2626 | _ -> None
···9393 let open Js_of_ocaml in
9494 let open M in
9595 try
9696- Firebug.console##log (Js.string "Starting worker...");
9696+ Console.console##log (Js.string "Starting worker...");
97979898 Logs.set_reporter (Logs_browser.console_reporter ());
9999 Logs.set_level (Some Logs.Info);
···107107 Server.compile_js compile_js;
108108 let rpc_fn = Impl.IdlM.server Server.implementation in
109109 Js_of_ocaml.Worker.set_onmessage (fun x -> ignore (server rpc_fn x));
110110- Firebug.console##log (Js.string "All finished")
110110+ Console.console##log (Js.string "All finished")
111111 with e ->
112112- Firebug.console##log (Js.string ("Exception: " ^ Printexc.to_string e))
112112+ Console.console##log (Js.string ("Exception: " ^ Printexc.to_string e))