| 553 | } |
| 554 | |
| 555 | static 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 | |
| 569 | static bool add_promise_reactions(JSContext* cx, JS::HandleValue promise, |
| 570 | JSNative resolve, JSNative reject, |
nothing calls this directly
no test coverage detected