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

Function gjs_get_source_map_registry

gjs/module.cpp:337–343  ·  view source on GitHub ↗

* gjs_get_source_map_registry: * @global: The JS global object * * Retrieves a global's source map registry from the SOURCE_MAP_REGISTRY slot. * Registries are JS Maps. * * Returns: the source map registry, a JS Map object */

Source from the content-addressed store, hash-verified

335 * Returns: the source map registry, a JS Map object
336 */
337JSObject* gjs_get_source_map_registry(JSObject* global) {
338 JS::Value source_map_registry =
339 gjs_get_global_slot(global, GjsGlobalSlot::SOURCE_MAP_REGISTRY);
340
341 g_assert(source_map_registry.isObject());
342 return &source_map_registry.toObject();
343}
344
345/**
346 * gjs_module_load:

Callers 3

get_source_map_registryFunction · 0.85
format_exception_stackFunction · 0.85

Calls 1

gjs_get_global_slotFunction · 0.85

Tested by

no test coverage detected