-
Notifications
You must be signed in to change notification settings - Fork 15k
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
Using "harmony-reflect" aka Proxy() in main.js? *How to enable --harmony_proxies flag? #3352
Comments
More version info: |
Not sure if it makes a difference but try |
@OlsonDev No difference, I'm able to get it working in the render view with the previous mention, but not in the main thread. |
This flag has to be setup before the JavaScript context is created, so |
That would be ideal, in the meantime I have tried changing the default flags for v8 in flag-definitions.h with no success (clean, compile, run) and proxies still aren't enabled. Any suggestions? Could my existing electron install be interfering? I'm compiling another build w/ more harmony flags enabled to see if this makes a difference. |
I've made numerous changes and build attempts to both files for Atom, Node, and V8. None of my changes have successfully enabled proxies. I've also found the vendor source for Node is not the same as the actual source for Node v4.1.1, what is the reason for this? Due to this inconsistency I'm unable to build the same sources for Node nor am I able to replace the vendor Node with the official Node sources.
Are Harmony features broken in Electron's version of Node? |
Closed with #3412. |
I've tried the following:
and starting electron with:
electron . --js-flags="--harmony_proxies"
electron . --harmony_proxies
None of these seem to work and it's failing inside require('harmony-reflect') when checking for Proxy.
How can I enable ES6 Proxies?
Using:
Node.js v4.1.1
Electron 0.34.1.
The text was updated successfully, but these errors were encountered: