I am trying:
Async_js.init ();
Async_kernel.don't_wait_for(
let t = Async_kernel.try_with (Index.start_index_js) in
Firebug.console##log "### halted";
let%bind _ = begin
match%map t with
| Ok () ->
Firebug.console##log "Ok"; ()
| Error err ->
Firebug.console##log "Err";
Firebug.console##log err ; ()
end in
Firebug.console##log "### done printing";
return ()
)
But my exceptions are being silently dropped. Is there something else I need to do in my async js setup to have it dump exceptions / raise / failwith to the Chrome dev console ?