Initialize isolate holder in standalone node mode
This commit is contained in:
parent
88e53b1b5e
commit
e30131f30b
2 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue