Initialize isolate holder in standalone node mode

This commit is contained in:
deepak1556 2017-12-12 09:41:58 +05:30 committed by Cheng Zhao
parent 88e53b1b5e
commit e30131f30b
2 changed files with 5 additions and 3 deletions

View file

@ -45,6 +45,8 @@ int NodeMain(int argc, char *argv[]) {
// V8 requires a task scheduler apparently
base::TaskScheduler::CreateAndStartWithDefaultParams("Electron");
// Initialize gin::IsolateHolder.
JavascriptEnvironment::Initialize();
JavascriptEnvironment gin_env;
int exec_argc;