coffeescript
coffeescript copied to clipboard
Unfancy JavaScript
In what I believe is a bug, line numbers in stack traces from errors thrown by CoffeeScript code executed via `CoffeeScript.eval()` (in NodeJS) give the JavaScript line numbers instead of...
### Input Code [#try](http://coffeescript.org/#try:continue%0Abreak%0A%0Afor%20item%20in%20iterable%20then%20do%20(item)%20-%3E%0A%20%20if%20await%20item%0A%20%20%20%20continue%0A%20%20else%0A%20%20%20%20break%0A) ```coffee continue break for item in iterable then do (item) -> if await item continue else break ``` ### Expected Behavior Compile Error: Unexpected token ###...
"multiple parameters named <value>" when destructuring params in args with duplicate default values
Bug report ### Input Code ```coffee baz = ({ foo: _foo = false, bar: _bar = false } = {}) -> ``` ### Expected Behavior ```javascript var baz; baz =...
It has been submitted before #1091, #4148 but it has been a while since last discussed so I'd like bring it forward again. I've been an avid coffeescript user since...
[#try](http://coffeescript.org/#try:a%20%3D%20%5B%0A%20%20b1%3A%201%0A%20%20b2%3A%202%0A%2C%20c1%3A%201%0A%20%20c2%3A%202%0A%5D%0A) ### Input Code ```coffee a = [ b1: 1 b2: 2 , c1: 1 c2: 2 ] ``` ### Expected Behavior ```js var a; a = [ { b1:...
### Bug when compiled, a comment which is inside an array literal is moved into a multi-line string preceding the array literal. ### Input Code minimal example which exhibits the...
[As seen on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/super#Using_super.prop_in_object_literals). ```coffee obj1 = -> method1: -> console.log 'method1' obj2 = method2: -> super.method1() Object.setPrototypeOf obj2, obj1 obj2.method2() # logs "method1" ``` The `obj2` variable would transpile...
Node 8.5 added support for [ES modules](https://nodejs.org/api/esm.html) behind the `--experimental-modules` flag. Node 10, expected to be released in [April 2018](https://github.com/nodejs/Release), will supposedly drop the flag. Here’s [a great overview](http://2ality.com/2017/09/native-esm-node.html). Adding...
Please provide better debugging, as transpiling to JS is confusing. I'll give an example.  Basically, the error is thrown for the code transpiled to JS, as so: ``` Thrown:...
Choose one: is this a bug report or feature request? A bit of both. ### Input Code [#try](http://coffeescript.org/#try:use%20k%2C%20v%20for%20k%2C%20v%20of%0A%20%20k%3A%20v%0A) ```coffee use k, v for k, v of k: v ``` While...