maxtaco/coffee-script — Issue #22: Class.name is readonly in strict mode
Author: yyfearth
Created: 2012-02-25 13:23:51+00:00
State: open

in iced-coffee-script, `class Class` will be compiled into:

```
var Class;
Class = (function() {
Class.name = 'Class';
function Class() {}
return Class;
})();
```

in strict mode while add `"use strict";` in front
`Class.name = 'Class';` thow exception because class.name is readonly

and i look at current verion of coffee-script it will not add `Class.name = 'Class';`:

```
var Class;
Class = (function() {
function Class() {}
return Class;
})();
```