| 69 | } |
| 70 | |
| 71 | js::UniquePtr<JS::JobQueue::SavedJobQueue> JobQueue::saveJobQueue(JSContext *cx) { |
| 72 | auto saved = js::MakeUnique<JS::JobQueue::SavedJobQueue>(); |
| 73 | if (!saved) { |
| 74 | JS_ReportOutOfMemory(cx); |
| 75 | return NULL; |
| 76 | } |
| 77 | return saved; |
| 78 | } |
| 79 | |
| 80 | bool JobQueue::init(JSContext *cx) { |
| 81 | JS::SetJobQueue(cx, this); |
nothing calls this directly
no outgoing calls
no test coverage detected