lone
lone copied to clipboard
node flags support
For running with --harmony, --harmony_proxies, etc. so we can write ES6 standalone executables.
According to https://github.com/thlorenz/v8-flags, this can't be set at runtime.
Think I'm just going to switch to using latest io.js stable, which should make this all a lot simpler and much more sane...
Ah... There is a gyp define for NODE_V8_OPTIONS we could set at build time which seems to do the trick:
npm install -g [email protected];
DEBUG=* GYP_DEFINES='node_v8_options="--harmony --harmony_proxies"' lone
Perhaps we should add lone.v8_options to package.json/config to make this easier?
That sounds like a good idea. Relying on command line invocation to compile is a little messy - trust me, I used to write Go code for a living :p