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::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
|
||||||
|
|
Loading…
Reference in a new issue