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:87
PyMethodDef PythonMonkeyMethods[]
Array of method definitions for the pythonmonkey module.
Definition pythonmonkey.cc:538
JS::PersistentRootedObject jsFunctionRegistry
Definition pythonmonkey.cc:50
PyMODINIT_FUNC PyInit_pythonmonkey(void)
Initialization function for the module. Starts the JSContext, creates the global object,...
Definition pythonmonkey.cc:558
PyObject * getPythonMonkeyNull()
Definition pythonmonkey.cc:101
PyObject * SpiderMonkeyError
PyObject for spidermonkey error type.
Definition pythonmonkey.cc:556
PyObject * getPythonMonkeyBigInt()
Definition pythonmonkey.cc:108
JSContext * GLOBAL_CX
Definition JSObjectProxy.cc:34