We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
switch when thing in arr console.log 'this' when thing not in arr console.log 'that'
The above should probably compile to something along the lines of this:
var indexOf = [].indexOf; switch (false) { case indexOf.call(arr, thing) < 0: console.log('this'); break; case indexOf.call(arr, thing) >= 0: console.log('that'); }
It however compiles to this:
var indexOf = [].indexOf; switch (false) { case indexOf.call(arr, thing) < 0: console.log('this'); break; case indexOf.call(arr, thing) < 0: console.log('that'); }
This does not happen in coffee v1 nor in civet with coffee compat
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected Behavior
The above should probably compile to something along the lines of this:
Current Behavior
It however compiles to this:
Environment
But the thing happens even on the "try coffeescript" page on the website too
Other context
This does not happen in coffee v1 nor in civet with coffee compat
The text was updated successfully, but these errors were encountered: