Always enable harmony when node binding is on.

If we dont' do this we would have lots of "Extension or internal
compilation error." error, seems to be V8's bug.
This commit is contained in:
Cheng Zhao 2014-07-28 17:06:28 +08:00
parent a6ede12cd7
commit 143bde007a

View file

@ -70,6 +70,10 @@ AtomRendererClient::AtomRendererClient()
node_integration_ = ALL;
if (IsNodeBindingEnabled()) {
// Always enable harmony when node binding is on.
std::string flags("--harmony");
v8::V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.size()));
node_bindings_.reset(NodeBindings::Create(false));
atom_bindings_.reset(new AtomRendererBindings);
}