| 25 | } |
| 26 | |
| 27 | PyObject *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 | |
| 35 | PyObject *JSFunctionProxyMethodDefinitions::JSFunctionProxy_call(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 36 | JSContext *cx = GLOBAL_CX; |
nothing calls this directly
no outgoing calls
no test coverage detected