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

Function define_legacy_tostring

gjs/byteArray.cpp:82–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82GJS_JSAPI_RETURN_CONVENTION
83static bool define_legacy_tostring(JSContext* cx, JS::HandleObject array) {
84 const GjsAtoms& atoms = GjsContextPrivate::atoms(cx);
85 return JS_DefineFunctionById(cx, array, atoms.to_string(),
86 instance_to_string_func, 1, 0);
87}
88
89// fromString() function implementation
90GJS_JSAPI_RETURN_CONVENTION

Callers 2

from_string_funcFunction · 0.85
from_gbytes_funcFunction · 0.85

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected