| 85 | } |
| 86 | |
| 87 | static PyObject *callDispatchFunc(PyObject *dispatchFuncTuple, PyObject *Py_UNUSED(unused)) { |
| 88 | JSContext *cx = (JSContext *)PyLong_AsVoidPtr(PyTuple_GetItem(dispatchFuncTuple, 0)); |
| 89 | JS::Dispatchable *dispatchable = (JS::Dispatchable *)PyLong_AsVoidPtr(PyTuple_GetItem(dispatchFuncTuple, 1)); |
| 90 | dispatchable->run(cx, JS::Dispatchable::NotShuttingDown); |
| 91 | Py_RETURN_NONE; |
| 92 | } |
| 93 | |
| 94 | static PyMethodDef callDispatchFuncDef = {"JsDispatchCallable", callDispatchFunc, METH_NOARGS, NULL}; |
| 95 |
nothing calls this directly
no outgoing calls
no test coverage detected