| 140 | } |
| 141 | |
| 142 | static bool gjs_exit(JSContext* cx, unsigned argc, JS::Value* vp) { |
| 143 | JS::CallArgs args = JS::CallArgsFromVp(argc, vp); |
| 144 | int32_t ecode; |
| 145 | if (!gjs_parse_call_args(cx, "exit", args, "i", "ecode", &ecode)) |
| 146 | return false; |
| 147 | |
| 148 | GjsContextPrivate* gjs = GjsContextPrivate::from_cx(cx); |
| 149 | gjs->exit(ecode); |
| 150 | JS::ReportUncatchableException(cx); |
| 151 | return false; |
| 152 | } |
| 153 | |
| 154 | static bool gjs_clear_date_caches(JSContext*, unsigned argc, JS::Value* vp) { |
| 155 | JS::CallArgs args = JS::CallArgsFromVp(argc, vp); |
nothing calls this directly
no test coverage detected