| 106 | } |
| 107 | |
| 108 | static 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, ®istry)) { |
| 115 | gjs_log_exception(cx); |
| 116 | return false; |
| 117 | } |
| 118 | args.rval().setObject(*registry); |
| 119 | return true; |
| 120 | } |
| 121 | |
| 122 | static JSFunctionSpec debugger_funcs[] = { |
| 123 | JS_FN("quit", quit, 1, GJS_MODULE_PROP_FLAGS), |
nothing calls this directly
no test coverage detected