I use the examples from the CoffeeScript homepage and it doesn't validate.
The for
loop one is a perfect example, if you use the coffeescript statement it doesn't wrap the body in an if
statement.
- Expected '{' and instead saw 'child'.
- Possible strict violation.
- A constructor name should start with an uppercase letter.
- 'insertclassnamehere' is already defined.
- Did you mean to return a conditional instead of an assignment?
- Expected '===' and instead saw '=='.
- Unexpected '~'.
- Expected '!==' and instead saw '!='.
- The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.