Comments (9)
This goes conform to the current command line description at https://github.com/s-a/iron-node#debug-session. So far there is no mechanism to pass v8 switches via commandline,
Not tried yet but one of this should do the job as described at https://iojs.org/api/v8.html#v8_setflagsfromstring_string:
var v8 = require('v8');
v8.setFlagsFromString('--harmony-arrow-functions');
var flags = require('v8-flags').flags;
flags.harmony_arrow_functions(true);
Available flags are described at: https://github.com/thlorenz/v8-flags/blob/master/flags-0.11.md.
But cannot find harmony-arrow-functions
and no time today for further research. Can you investigate further?
from iron-node.
Unfortunately, neither worked. And BTW, the name of the flag has underscores not dashes. (That confused me too.)
Any ETA on passing V8 flags via command line?
from iron-node.
Not really,
forthcoming feature is a Plugin system which i' m currently testing against a dark ui theme.
From a plugin you could set up such v8 flags if they would work. Have you tried a flag which is listed at https://github.com/thlorenz/v8-flags/blob/master/flags-0.11.md?
from iron-node.
Seems they solved the problem. Can you try to setup v8 and then requiere your es6 code via separate js file?
from iron-node.
@cscalfani I got it
I will build something that solves this issue. as a workaround you can put this line into the app ready event.
app.commandLine.appendSwitch('js-flags', '--harmony-arrow-functions');
from iron-node.
@cscalfani https://github.com/s-a/iron-node/releases/tag/v1.5.22
Please let us know if this works for you.
from iron-node.
Thank you!!! I'm excited to use this but I have a couple of questions that the docs don't quite answer.
First off, the doc say that on OSX I'm looking for the iron-node
directory under ~/Library/Application Support
. There's already directory there called iron-node-app
. Is this the directory you were referring to or do I need to create the other directory?
Second question, can you provide the example format for the .iron-node.js
file (preferably in the documentation so others can benefit from this)?
Thanks again for working so quickly on this.
from iron-node.
You need to create the new folder. iron-node-app
is some thing electron related. https://github.com/s-a/iron-node/blob/master/.iron-node.js is linked in the docs, but I have just seen that this is not clear enough
from iron-node.
Works!!! Thanks.
from iron-node.
Related Issues (20)
- fails to stop on `debugger;` command HOT 4
- A dynamic link library (DLL) initialization routine failed (bcrypt) HOT 2
- iron-node not working with angular2-seed (typescript, gulp) HOT 1
- iron-node > 2.2.15 makes unicorns cry => doesn't work on OSX HOT 4
- Application takes 100% CPU and is unresponsive HOT 4
- Problem with using node-sass on Ubuntu 16.04 HOT 1
- command + w closes iron-node even when iron-node is behind another window HOT 1
- How to pass command to nodejs? HOT 1
- All good things come to an end.. HOT 4
- Publish a new version HOT 2
- new installation requieres install -g and still can't start HOT 7
- Run this in the web browser HOT 1
- No such module: atom_renderer_v8_util HOT 7
- Electron failed to install correctly, please delete node_modules/electron and try installing again HOT 5
- [feature request] Debugging without writing debugger HOT 4
- Electron Helper crashes when refreshing while devtools is paused HOT 4
- contextify.node was compiled against a different Node.js version using NODE_MODULE_VERSION 48 HOT 1
- Error: Cannot find module, despite NODE_PATH being set
- Usage with babel-node HOT 1
- Child Processes don't show in the logs or in the source
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iron-node.