CoffeeScriptRedux
CoffeeScriptRedux copied to clipboard
Classes are global in beta8
Coffee-script:
class Foo
Compiles to:
// Generated by CoffeeScript 2.0.0-beta8
void function () {
Foo = function () {
function Foo() {
}
void 0;
return Foo;
}();
}.call(this);
This does not seem to be happening if Foo is top-level (--bare and no surrounding function). For the following case it's even happening with --bare:
makeClass = ->
class Foo