Skip to content

entry.split(/=/) creates Unexpected 'COMPOUND_ASSIGN' #1937

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bigeasy opened this issue Dec 16, 2011 · 1 comment
Closed

entry.split(/=/) creates Unexpected 'COMPOUND_ASSIGN' #1937

bigeasy opened this issue Dec 16, 2011 · 1 comment

Comments

@bigeasy
Copy link

bigeasy commented Dec 16, 2011

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.<anonymous> (/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.<anonymous> (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

@michaelficarra
Copy link
Collaborator

duplicate of #1399

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants