10#ifndef PythonMonkey_Module_PythonMonkey
11#define PythonMonkey_Module_PythonMonkey
16#include <js/CompilationAndEvaluation.h>
17#include <js/Initialization.h>
24static JS::Rooted<JSObject *> *global;
25static JSAutoRealm *autoRealm;
45static PyObject *collect(PyObject *self, PyObject *args);
54static PyObject *
eval(PyObject *self, PyObject *args);
Implements the ECMAScript Job Queue.
Implement the ECMAScript Job Queue: https://www.ecma-international.org/ecma-262/9....
Definition JobQueue.hh:24
eval
Definition require.py:85
PyMethodDef PythonMonkeyMethods[]
Array of method definitions for the pythonmonkey module.
Definition pythonmonkey.cc:525
JS::PersistentRootedObject jsFunctionRegistry
Definition pythonmonkey.cc:49
PyMODINIT_FUNC PyInit_pythonmonkey(void)
Initialization function for the module. Starts the JSContext, creates the global object,...
Definition pythonmonkey.cc:545
PyObject * getPythonMonkeyNull()
Definition pythonmonkey.cc:100
PyObject * SpiderMonkeyError
PyObject for spidermonkey error type.
Definition pythonmonkey.cc:543
PyObject * getPythonMonkeyBigInt()
Definition pythonmonkey.cc:107
JSContext * GLOBAL_CX
Definition JSObjectProxy.cc:33