Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
"foo:: instanceof Bar" doesn't convert correctly to JS #138
The following JS:
Foo.protoype instanceof Bar
gets correctly converted to CoffeeScript:
Foo:: instanceof Bar
But going the other direction, the above CoffeeScript gets converted to:
when something like the topmost JS is expected.
Aside: I'm porting the QuickUI web UI framework (http://quickui.org) to CoffeeScript, and am using js2coffee to get the port started. js2coffee did an amazing job. The converted CoffeeScript, when compiled, passes nearly all of the QuickUI unit test suite. The unmodified js2coffee output passed 112 of the 116 unit tests in the suite. The remaining 4 broken tests were due to the issue described here. Many, many thanks for the work you've put into this tool!