Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python descending range doesn't produce correct javascript code #62

Open
ericperriard opened this issue Jul 5, 2021 · 1 comment
Open

Comments

@ericperriard
Copy link

Python code:

for i in range(3, 1, -1):

Now produces:

for (var i = 3, _pj_a = 1; (i < _pj_a); i += (- 1)) {...}

but should produce (reverse the conditional):

for (var i = 3, _pj_a = 1; (i > _pj_a); i += (- 1))

@azazel75
Copy link
Collaborator

azazel75 commented Jul 5, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants