refactor: dynamically search defines from node (#30563)

This commit is contained in:
Cheng Zhao
2021-08-19 05:34:15 +09:00
committed by GitHub
parent ec13a0b0e6
commit 8699124397
8 changed files with 59 additions and 109 deletions

View File

@@ -212,7 +212,7 @@ int NodeMain(int argc, char* argv[]) {
env = node::CreateEnvironment(isolate_data, gin_env.context(),
result.args, result.exec_args);
CHECK_NOT_NULL(env);
CHECK_NE(nullptr, env);
node::IsolateSettings is;
node::SetIsolateUpForNode(isolate, is);