chrivers / pyjaco

Python to JavaScript translator
http://pyjaco.org
MIT License
140 stars 18 forks source link

.join behaves different from the python implementation #81

Closed obeleh closed 11 years ago

obeleh commented 11 years ago

print "ab".join(['', 'bcd']) == "abbcd"

in python this prints True in pyjaco this prints False

"ab".join(['', 'bcd']) results in "bcd"

chrivers commented 11 years ago

Thank you very much for reporting this. This bug has been fixed in the new branch, and your test case has been added to the test suite to prevent regressions.