dcodeIO / node-harmonize

Enables --harmony flags programmatically.
http://dcode.io
BSD 3-Clause "New" or "Revised" License
25 stars 7 forks source link

Version 1.33.7 causes gulp to timeout in old versions of node #14

Closed remojansen closed 7 years ago

remojansen commented 7 years ago

Version 1.33.7 causes gulp to timeout in old versions of node. Build example: https://travis-ci.org/inversify/InversifyJS/builds/187246937

dcodeIO commented 7 years ago

Closing this for now. See harmonize@2.0.0

remojansen commented 7 years ago

The version 2.0 fails but this time with a different error:

Error: Native proxies not enabled. use node --harmony-proxies to enable them.

It works fine with harmonize@1.4.4.

dcodeIO commented 7 years ago

Have you tried

require("harmonize")(["harmony", "harmony-proxies", "harmony_proxies"]);
// not exactly sure why it's --harmony-proxies sometimes
// v8-options shows --harmony_proxies for me with node 6.9.1

already? 2.0 does not set anything but --harmony by default.

remojansen commented 7 years ago

That solved my problem! Thanks a lot for your help 👍