* 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 */
| 335 | * Returns: the source map registry, a JS Map object |
| 336 | */ |
| 337 | JSObject* 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: |
no test coverage detected