зеркало из https://github.com/electron/electron.git
chore: use static_cast rather than C-style cast (#29467)
This commit is contained in:
Родитель
cb59bab8cf
Коммит
31190d4c6d
|
@ -444,8 +444,9 @@ node::Environment* NodeBindings::CreateEnvironment(
|
|||
node::EnvironmentFlags::kNoRegisterESMLoader |
|
||||
node::EnvironmentFlags::kNoInitializeInspector;
|
||||
v8::TryCatch try_catch(context->GetIsolate());
|
||||
env = node::CreateEnvironment(isolate_data_, context, args, exec_args,
|
||||
(node::EnvironmentFlags::Flags)flags);
|
||||
env = node::CreateEnvironment(
|
||||
isolate_data_, context, args, exec_args,
|
||||
static_cast<node::EnvironmentFlags::Flags>(flags));
|
||||
DCHECK(env);
|
||||
|
||||
// This will only be caught when something has gone terrible wrong as all
|
||||
|
|
Загрузка…
Ссылка в новой задаче