coffee-script
coffee-script copied to clipboard
autocb is not defined
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()
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()
Thank you, maxtaco, autocb works ok with -> in version 1.7.1-g.