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

Method JSFunctionProxy_new

src/JSFunctionProxy.cc:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27PyObject *JSFunctionProxyMethodDefinitions::JSFunctionProxy_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds) {
28 JSFunctionProxy *self = (JSFunctionProxy *)subtype->tp_alloc(subtype, 0);
29 if (self) {
30 self->jsFunc = new JS::PersistentRootedObject(GLOBAL_CX);
31 }
32 return (PyObject *)self;
33}
34
35PyObject *JSFunctionProxyMethodDefinitions::JSFunctionProxy_call(PyObject *self, PyObject *args, PyObject *kwargs) {
36 JSContext *cx = GLOBAL_CX;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected