MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / saveJobQueue

Method saveJobQueue

src/JobQueue.cc:71–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71js::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
80bool JobQueue::init(JSContext *cx) {
81 JS::SetJobQueue(cx, this);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected