jashkenas/coffee-script — Issue #1937: entry.split(/=/) creates Unexpected 'COMPOUND_ASSIGN'
Author: bigeasy
Created: 2011-12-16 02:57:03+00:00
State: open

Type:

entry.split(/=/)

Into the REPL.

```
coffee> entry.split(/=/)
Error: In repl, Parse error on line 1: Unexpected 'COMPOUND_ASSIGN'
at Object.parseError (/opt/lib/node_modules/coffee-script/lib/coffee-script/parser.js:466:11)
at Object.parse (/opt/lib/node_modules/coffee-script/lib/coffee-script/parser.js:542:22)
at /opt/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:38:22
at Object.eval (/opt/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:121:10)
at Interface. (/opt/lib/node_modules/coffee-script/lib/coffee-script/repl.js:51:34)
at Interface.emit (events.js:64:17)
at Interface._onLine (readline.js:153:10)
at Interface._line (readline.js:408:8)
at Interface._ttyWrite (readline.js:585:14)
at ReadStream. (readline.js:73:12)
```

With CoffeeScript version 1.1.3 on Node.js 0.4.12.

Initially discussed on the CoffeeScript listserv here:

https://groups.google.com/forum/#!topic/coffeescript/xWFK9ektwTo