timothycrosley / jiphy

Your client side done in a jiphy. Python to JavaScript 2-way converter.
MIT License
585 stars 73 forks source link

while loop has wrong bracket position (py to JS) #35

Open linshi1111 opened 3 years ago

linshi1111 commented 3 years ago

In python

import jiphy

js_code = jiphy.to.javascript("""
while True:
    sleep(2)
print("This is not in while loop")
""")

print(js_code)

And the output is:

;
while (true) {
    sleep(2);
console.log('This is not in while loop');

}

bracket has wrong position