coffee-script icon indicating copy to clipboard operation
coffee-script copied to clipboard

Variable `iced`

Open hgGeorg opened this issue 10 years ago • 0 comments

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.

hgGeorg avatar Aug 14 '15 12:08 hgGeorg