MCPcopy Create free account
hub / github.com/GNOME/gjs / on_context_module_resolved

Function on_context_module_resolved

gjs/context.cpp:555–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553}
554
555static bool on_context_module_resolved(JSContext* cx, unsigned argc,
556 JS::Value* vp) {
557 JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
558
559 gjs_debug(GJS_DEBUG_IMPORTER, "Module evaluation promise resolved: %s",
560 gjs_debug_callable(&args.callee()).c_str());
561
562 args.rval().setUndefined();
563
564 GjsContextPrivate::from_cx(cx)->main_loop_release();
565
566 return true;
567}
568
569static bool add_promise_reactions(JSContext* cx, JS::HandleValue promise,
570 JSNative resolve, JSNative reject,

Callers

nothing calls this directly

Calls 3

gjs_debugFunction · 0.85
gjs_debug_callableFunction · 0.85
main_loop_releaseMethod · 0.80

Tested by

no test coverage detected