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
Harmony in node-wekbit? #298
Comments
It also could make some things easier if these options were supported as node-webkit's |
I agree. It would be much better to configure these through |
Chromium has a command line flag |
Hi @rogerwang . It seems that currently my implement of the |
it doesn't handle |
@zhchbin can you review my changes to see whether it's ok for you? |
Would you extend the corresponding wiki article with an example of |
@Mithgol done and thanks for the suggestion. https://github.com/rogerwang/node-webkit/wiki/Manifest-format/_compare/fc6d2c8%5E...fc6d2c8 I'm not sure why the syntax highlighting is not working... |
Hi, @rogerwang, thanks for fix my implement, Edit: and it break the use case like: |
…wstring. Do some conversion between them. nwjs#298.
[WIN] Fix compile error because CommandLine::StringType will be std::wstring. #298
The Though I still wonder if a newbie would need a more complex example involving escaped quotes and a separator between two different V8-related arguments, such as
I haven't made any decision about its necessity (otherwise I would have replaced the example in the wiki already). |
@Mithgol Sorry to tell you that, currently my implement doesn't meet your case:
The correct one should be:
I will update the wiki... Update: In the previous use case, only the last one |
I'm trying to use this on v4.0: but I keep getting errors in my app.html: any ideas? |
try to add |
Tried it, no luck. Does it work for anyone else? [edit: using single flag |
@pauliusuza Please have a try by using: @rogerwang It seems that using space to separate two option in our use case does have some problems. Can we change it to use another? For example: |
Can this be the solution? fc297de352156fedaa7bacd145e8b078a006c535 |
Hi @owenc4a4 , maybe wrong, your commit has nothing to do with the case in my comment... I will fix it as my previous description and update the test case and wiki soon. |
Why we cannot use whitespace as the separator? |
@rogerwang in the following case: The new usage of this api will become |
I prefer not to use semicolons. Can multiple js-flags be quoted with single quote (') ? |
I get what you are concerned about. However, if multiple js-flags be quoted with single quote |
I think there could be some code for this kind of command line parsing in Chromium code which we could utilize. |
Alternatively, you may make these flags separate by introducing some That would be easier for the people composing their manifests (I mean, not to mistype space for a semicolon out of habit, or a double quote instead of single, etc.). Some visual separation between the flags of different nature (where |
@rogerwang will change the code as your description. Reopen to track it. |
I think @Mithgol 's idea is great. You can add that field in manifest. |
Got it, thanks @Mithgol 's idea. |
Thanks for accepting my suggestion. |
Wiki of |
I would like to use the Harmony features of V8 in node-webkit.
I can do that with node alone using "node --harmony" but this option is not recognized by node-webkit.
I am particularly interested in Proxy and WeakMap. As explained in issue #296, the node-proxy module that emulates Proxy does not work out of the box with node-webkit on the Mac because of 32- vs. 64-bit issues.
More generally, it would be useful to expose the V8 engine options to node-webkit since these are available from both node and webkit (e.g. in Chrome using the about:flags URL).
The text was updated successfully, but these errors were encountered: