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

Function gjs_debug_callable

gjs/jsapi-util-string.cpp:596–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594}
595
596std::string gjs_debug_callable(JSObject* callable) {
597 if (JSFunction* fn = JS_GetObjectFunction(callable)) {
598 if (JSString* display_id = JS_GetMaybePartialFunctionDisplayId(fn))
599 return {"function " + gjs_debug_string(display_id)};
600 return {"unnamed function"};
601 }
602 return {"callable object " + gjs_debug_object(callable)};
603}
604
605std::string gjs_debug_value(JS::Value v) {
606 if (v.isNull())

Callers 6

marshalMethod · 0.85
callback_closureMethod · 0.85
load_context_moduleFunction · 0.85

Calls 2

gjs_debug_stringFunction · 0.85
gjs_debug_objectFunction · 0.85

Tested by

no test coverage detected