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

Method init

src/JobQueue.cc:80–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80bool 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
87static PyObject *callDispatchFunc(PyObject *dispatchFuncTuple, PyObject *Py_UNUSED(unused)) {
88 JSContext *cx = (JSContext *)PyLong_AsVoidPtr(PyTuple_GetItem(dispatchFuncTuple, 0));

Callers 4

toJsErrorMethod · 0.80
getExceptionStringFunction · 0.80
evalFunction · 0.80
PyInit_pythonmonkeyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected