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

Method to_string

gi/wrapperutils.h:595–601  ·  view source on GitHub ↗

* GIWrapperBase::to_string: * * JSNative method connected to the toString() method in JS. */

Source from the content-addressed store, hash-verified

593 * JSNative method connected to the toString() method in JS.
594 */
595 GJS_JSAPI_RETURN_CONVENTION
596 static bool to_string(JSContext* cx, unsigned argc, JS::Value* vp) {
597 GJS_CHECK_WRAPPER_PRIV(cx, argc, vp, args, obj, Base, priv);
598 return gjs_wrapper_to_string_func(cx, obj, Base::DEBUG_TAG,
599 priv->info(), priv->gtype(),
600 priv->ptr_addr(), args.rval());
601 }
602
603 // Helper methods
604

Callers 2

id_is_never_lazyMethod · 0.45
create_classMethod · 0.45

Calls 4

ptr_addrMethod · 0.80
infoMethod · 0.65
gtypeMethod · 0.45

Tested by

no test coverage detected