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

Method JobQueue

src/JobQueue.cc:25–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include <stdexcept>
24
25JobQueue::JobQueue(JSContext *cx) {
26 finalizationRegistryCallbacks = new JS::PersistentRooted<FunctionVector>(cx); // Leaks but it's OK since freed at process exit
27}
28
29bool JobQueue::getHostDefinedData(JSContext *cx, JS::MutableHandle<JSObject *> data) const {
30 data.set(nullptr); // We don't need the host defined data

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected