pub fn set_spawn_error_handler<F>(handler: F)where F: for<'js> Fn(&Ctx<'js>, CaughtError<'js>) + Sync + Send + 'static,