jashkenas/coffee-script — Issue #2174: property access after implicit object parameter gives "Unexpected '.'"
Author: erisdiscord
Created: 2012-03-05 02:18:16+00:00
State: open

% coffee -bcp -e "toolbar.addButton 'Preferences', icon: 'preferences', preferences.panel"
Error: Parse error on line 1: Unexpected '.'
at Object.parseError (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/parser.js:470:11)
at Object.parse (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/parser.js:546:22)
at Object.compile (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:40:22)
at /usr/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:140:33
at Object.run (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:56:27)
at Object. (/usr/local/lib/node_modules/coffee-script/bin/coffee:7:41)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)