зеркало из 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::kNoRegisterESMLoader |
|
||||||
node::EnvironmentFlags::kNoInitializeInspector;
|
node::EnvironmentFlags::kNoInitializeInspector;
|
||||||
v8::TryCatch try_catch(context->GetIsolate());
|
v8::TryCatch try_catch(context->GetIsolate());
|
||||||
env = node::CreateEnvironment(isolate_data_, context, args, exec_args,
|
env = node::CreateEnvironment(
|
||||||
(node::EnvironmentFlags::Flags)flags);
|
isolate_data_, context, args, exec_args,
|
||||||
|
static_cast<node::EnvironmentFlags::Flags>(flags));
|
||||||
DCHECK(env);
|
DCHECK(env);
|
||||||
|
|
||||||
// This will only be caught when something has gone terrible wrong as all
|
// This will only be caught when something has gone terrible wrong as all
|
||||||
|
|
Загрузка…
Ссылка в новой задаче