Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node flags support #24

Open
vkarpov15 opened this issue Apr 15, 2015 · 3 comments
Open

node flags support #24

vkarpov15 opened this issue Apr 15, 2015 · 3 comments

Comments

@vkarpov15
Copy link

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

@imlucas
Copy link
Owner

imlucas commented Apr 16, 2015

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 added a commit that referenced this issue Apr 16, 2015
@imlucas
Copy link
Owner

imlucas commented Apr 16, 2015

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 lone@0.4.2;
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?

@vkarpov15
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants