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

Method resolve

gjs/internal.cpp:546–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544 }
545
546 void resolve(JS::Value result) {
547 JS::RootedValueArray<1> args(cx);
548 args[0].set(result);
549 JS::RootedValue ignored_rval(cx);
550 bool ok GJS_USED_ASSERT = JS_CallFunction(
551 cx, /* this_obj = */ nullptr, resolver(), args, &ignored_rval);
552 g_assert(ok && "Failed resolving promise");
553 }
554};
555
556static void load_async_callback(GObject* file, GAsyncResult* res, void* data) {

Callers 1

load_async_callbackFunction · 0.45

Calls 1

setMethod · 0.80

Tested by

no test coverage detected