lone icon indicating copy to clipboard operation
lone copied to clipboard

node flags support

Open vkarpov15 opened this issue 10 years ago • 3 comments
trafficstars

For running with --harmony, --harmony_proxies, etc. so we can write ES6 standalone executables.

vkarpov15 avatar Apr 15 '15 19:04 vkarpov15

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...

imlucas avatar Apr 16 '15 01:04 imlucas

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?

imlucas avatar Apr 16 '15 18:04 imlucas

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

vkarpov15 avatar Apr 16 '15 19:04 vkarpov15