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

Function gjs_debug_string

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

Source from the content-addressed store, hash-verified

506}
507
508std::string gjs_debug_string(JSString* str) {
509 if (!str)
510 return "<null string>";
511 if (!JS_StringIsLinear(str)) {
512 std::ostringstream out("<non-flat string of length ",
513 std::ios_base::ate);
514 out << JS_GetStringLength(str) << '>';
515 return out.str();
516 }
517 return gjs_debug_linear_string(JS_ASSERT_STRING_IS_LINEAR(str),
518 DoubleQuotes);
519}
520
521std::string gjs_debug_symbol(JS::Symbol* const sym) {
522 if (!sym)

Callers 9

debug_jspropMethod · 0.85
lookup_fieldMethod · 0.85
gjs_module_resolveFunction · 0.85
gjs_debug_symbolFunction · 0.85
gjs_debug_objectFunction · 0.85
gjs_debug_callableFunction · 0.85
gjs_debug_valueFunction · 0.85

Calls 1

gjs_debug_linear_stringFunction · 0.85

Tested by 1