I am trying to execute simple JavaScript code in a pure Python environment (Google AppEngine).

I've tried PYJON, but it does not seem mature enough for real use(it does not handle eg forward referenced functions or do-while and it hangs on array usage).

One idea would be to use pynarcissus to convert JavaScript into a syntax tree and than convert this tree jnto a Python AST which could be compiled into Python bytecode.

Has anybody done this before?
Any problems with this idea?