maxtaco / coffee-script

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

Variable `iced` #160

Open hgGeorg opened 8 years ago

hgGeorg commented 8 years ago

If a variable with the name iced exists, await/defer will cause a TypeError.

iced = 0
await asyncFunc defer value
console.log value

I've looked at the compiled js file and this line was suspicious:

__iced_deferrals = new iced.Deferrals(__iced_k, {});

It seems that by declaring a variable as iced, the original/internal iced variable gets overshadowed.