PiotrDabkowski / Js2Py

JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python🚀 Try it online:
http://piter.io/projects/js2py
MIT License
2.47k stars 261 forks source link

fix bug when variable name equals Js #269

Open mie00 opened 3 years ago

mie00 commented 3 years ago

To reproduce

eval_js('(function(Js){1}(5))')

PiotrDabkowski commented 3 years ago

Thanks a lot, nice catch :) I like your solution.

There will still be an issue with Scope and PyJs.* names. Could you make them invalid as well, please?