maxtaco / coffee-script

IcedCoffeeScript
http://maxtaco.github.com/coffee-script
MIT License
727 stars 58 forks source link

autocb is not defined #131

Open ypapax opened 9 years ago

ypapax commented 9 years ago

In iced coffee script version 1.6.3-f autocb is working. But in later versions is not:

   ❯ iced --version                                                                                                                                                                                              
   IcedCoffeeScript version 1.7.1-g

  ❯ iced /path/to/file.iced                                                                                                                               
 ReferenceError: autocb is not defined
 at /path/to/file.iced:10:5

where /path/to/file.iced is:

 is200_async = require './is200_async.iced'
 module.exports = (url, autocb)=>
       await is200_async url, defer()
maxtaco commented 9 years ago

I should investigate further but a quick fix is to use -> rather than =>

 is200_async = require './is200_async.iced'
 module.exports = (url, autocb) ->
       await is200_async url, defer()
ypapax commented 9 years ago

Thank you, maxtaco, autocb works ok with -> in version 1.7.1-g.