mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user