maxtaco / coffee-script

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

Fix #146 #152

Closed paigeruten closed 9 years ago

paigeruten commented 9 years ago

Fixes: #146

Deferral variables were being given var declarations even when the variable would have the same name as a parameter in an outer scope, causing the parameter variable to be overridden.

I fixed this by checking whether the deferral variable already exists in the current scope before adding it to the scope.