I'm currently working on making JavaScript run successfully with Python. I implemented the JS engine (v8) using the PyV8 package. From here I can execute primitive JavaScript ("1 + 2", etc.). However, for JavaScript that uses links to a "document" or "window", the code throws an error. I look, ideally, for a Python implementation, however the JavaScript implementation will work just as I could add it to my script before I execute it, which is my JavaScript mechanism.
To summarize: how can I execute JavaScript, which uses Document and / or Window, from JavaScript?
Julio source
share