lsc-pattern: "[file] --nodejs --harmony-proxies" doesn't work
I'm using the 1.4 command line lsc
A command like:
lsc index.ls --nodejs --harmony-proxies
isn't passed to nodejs. I've debugged it a little and it seems the optionator simply doesn't recognize --nodejs and won't start node in line 35 of https://github.com/gkz/LiveScript/blob/master/src/command.ls.
What seems to work as a workaround is something like that:
o.nodejs = o._.indexOf('--nodejs') > -1 in Line 33
Uh... I cannot replicate this?
$ bin/lsc
LiveScript 1.4.0 - use 'lsc --help' for more information
ls> Proxy
Proxy
[ReferenceError: Proxy is not defined]
ls>
$ bin/lsc --nodejs --harmony-proxies
LiveScript 1.4.0 - use 'lsc --help' for more information
ls> Proxy
Proxy
Object {}
ls>
Can confirm, maybe you nodejs version is too old. (I'm not running master, but 1.4.0) (I'll reopen if you have more informations)
Can you create a file index.ls with the following content:
Proxy
and start it using:
lsc index.ls --nodejs --harmony-proxies
For me there is an error `Reference Error: Proxy is not defined'
Like I said, the problem appears only when I try to start a file, but not when I start a simple repl.
I'm on Node 5.0.0
If you pass any argument after the filename, then it's an argument for the program, not for lsc. sorry I read your original issue too fast.
You're right :) lsc --nodejs --harmony-proxies index.ls works :D