Closed yyfearth closed 12 years ago
i added --strict into xcoffee in 1.2.0r to enable force add "use strict"
, but forgot add a ;
after it.
strict mode conflict with coffeescript 1.3 and icedcoffeescript 1.2 class.name polyfill this issue is already reported to coffeescript and will be fixed in furture and i will merge with them
@masonaxcte for now, we just discard all 'use strict'
@yyfearth As long as CoffeeScript will deal with the non-standard programming style. I'm fine with that.
Solved
iced coffee-script compiler does not support "use strict"
the "use strict" we put in the front of coffee file will be compiled after variable declaration by iced-coffee-script, so extra-coffee-script will do the same. but original version coffee-script seems fixed that.
according to https://developer.mozilla.org/en/JavaScript/Strict_mode
so we can just remove that, and actually coffee-script will mandatory validate your code to ensure strict mode. or we need to wait the compiler update to support add "use strict" to the right space unless we just use original version of coffeescript.