Browse Source

chore: use static_cast rather than C-style cast (#29467)

David Sanders 3 years ago
parent
commit
31190d4c6d
1 changed files with 3 additions and 2 deletions
  1. 3 2
      shell/common/node_bindings.cc

+ 3 - 2
shell/common/node_bindings.cc

@@ -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