| 78 | } |
| 79 | |
| 80 | bool JobQueue::init(JSContext *cx) { |
| 81 | JS::SetJobQueue(cx, this); |
| 82 | JS::InitDispatchToEventLoop(cx, dispatchToEventLoop, cx); |
| 83 | JS::SetPromiseRejectionTrackerCallback(cx, promiseRejectionTracker); |
| 84 | return true; |
| 85 | } |
| 86 | |
| 87 | static PyObject *callDispatchFunc(PyObject *dispatchFuncTuple, PyObject *Py_UNUSED(unused)) { |
| 88 | JSContext *cx = (JSContext *)PyLong_AsVoidPtr(PyTuple_GetItem(dispatchFuncTuple, 0)); |
no outgoing calls
no test coverage detected