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

Function gjs_intern_string_to_id

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

Source from the content-addressed store, hash-verified

444}
445
446jsid gjs_intern_string_to_id(JSContext* cx, const char* string) {
447 JS::RootedString str(cx, JS_AtomizeAndPinString(cx, string));
448 if (!str)
449 return JS::PropertyKey::Void();
450 return JS::PropertyKey::fromPinnedString(str);
451}
452
453std::string gjs_debug_bigint(JS::BigInt* bi) {
454 // technically this prints the value % INT64_MAX, cast into an int64_t if

Callers 15

create_prototypeMethod · 0.85
new_enumerate_implMethod · 0.85
new_enumerate_implMethod · 0.85
new_enumerate_implMethod · 0.85
new_enumerate_implMethod · 0.85
constructor_implMethod · 0.85
gjs_import_native_moduleFunction · 0.85

Calls

no outgoing calls

Tested by 1