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

Function get_source_map_registry

gjs/debugger.cpp:108–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108static bool get_source_map_registry(JSContext* cx, unsigned argc,
109 JS::Value* vp) {
110 JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
111 GjsContextPrivate* gjs = GjsContextPrivate::from_cx(cx);
112
113 JS::RootedObject registry{cx, gjs_get_source_map_registry(gjs->global())};
114 if (!JS_WrapObject(cx, &registry)) {
115 gjs_log_exception(cx);
116 return false;
117 }
118 args.rval().setObject(*registry);
119 return true;
120}
121
122static JSFunctionSpec debugger_funcs[] = {
123 JS_FN("quit", quit, 1, GJS_MODULE_PROP_FLAGS),

Callers

nothing calls this directly

Calls 3

gjs_log_exceptionFunction · 0.85
globalMethod · 0.80

Tested by

no test coverage detected