
static void qjs_init_runtime_libc(JSRuntime *rt)
{
 	if (gf_opts_get_bool("core", "no-js-mods"))
		return;

    /* module loader */
	JS_SetModuleLoaderFunc(rt, NULL, qjs_module_loader, NULL);

#ifndef GPAC_DISABLE_QJS_LIBC

    js_std_set_worker_new_context_func(JS_NewWorkerContext);
    js_std_init_handlers(rt);


    if (gf_opts_get_bool("core", "unhandled-rejection")) {
        JS_SetHostPromiseRejectionTracker(rt, js_promise_rejection_tracker, NULL);
    }
#endif


static void qjs_init_runtime_libc(JSRuntime *rt)
{
 	if (gf_opts_get_bool("core", "no-js-mods"))
		return;

     
	JS_SetModuleLoaderFunc(rt, NULL, qjs_module_loader, NULL);

#ifndef GPAC_DISABLE_QJS_LIBC

    js_std_set_worker_new_context_func(JS_NewWorkerContext);
    js_std_init_handlers(rt);


    if (gf_opts_get_bool("core", "unhandled-rejection")) {
        JS_SetHostPromiseRejectionTracker(rt, js_promise_rejection_tracker, NULL);
    }
#endif
