chore: use static_cast rather than C-style cast (#29467)
This commit is contained in:
parent
cb59bab8cf
commit
31190d4c6d
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue