jashkenas/coffee-script — Issue #1775: Using === causes a compiler error
Author: markbates
Created: 2011-10-17 01:38:16+00:00
State: open

If using the `===` operator in a CoffeeScript file the compiler raises the following error:

```
Error: In foo.coffee, Parse error on line 13: Unexpected '='
at Object.parseError (/usr/local/lib/node_modules/coffee-script/lib/parser.js:472:11)
at Object.parse (/usr/local/lib/node_modules/coffee-script/lib/parser.js:548:22)
at /usr/local/lib/node_modules/coffee-script/lib/coffee-script.js:29:22
at Object.run (/usr/local/lib/node_modules/coffee-script/lib/coffee-script.js:57:34)
at /usr/local/lib/node_modules/coffee-script/lib/command.js:147:29
at /usr/local/lib/node_modules/coffee-script/lib/command.js:115:26
at [object Object]. (fs.js:107:5)
at [object Object].emit (events.js:61:17)
at afterRead (fs.js:878:12)
at wrapper (fs.js:245:17)
```

The same goes for `!==`.

I know that `is` should be used, but I don't feel that this should cause a compiler error.