gkz / LiveScript

LiveScript is a language which compiles to JavaScript. It has a straightforward mapping to JavaScript and allows you to write expressive code devoid of repetitive boilerplate. While LiveScript adds many features to assist in functional style programming, it also has many improvements for object oriented and imperative programming.
http://livescript.net
MIT License
2.32k stars 155 forks source link

Bug when chaining on a partially-applied function #1042

Closed vendethiel closed 6 years ago

vendethiel commented 6 years ago
$ bin/lsc -bce 'Object.keys _ .length'
TypeError: Cannot read property 'length' of undefined
    at ctor$.exports.Chain.Chain.add (~/LiveScript/lib/ast.js:1046:111)
    at Object.anonymous (~/LiveScript/lib/parser.js:96:41)
    at Parser.parse (~/LiveScript/lib/parser.js:912:36)
    at Object.exports.compile (~/LiveScript/lib/index.js:45:20)
    at compileScript (~/LiveScript/lib/command.js:202:29)
    at ~/LiveScript/lib/command.js:80:9
    at Object.<anonymous> (~/LiveScript/bin/lsc:7:26)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
rhendric commented 6 years ago

746 dupe?

vendethiel commented 6 years ago

Indeed, I had no recollection of this. I'll move the discussion there :-).