File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ prepareMainThreadExecution();
3333addBuiltinLibsToObject ( globalThis , '<eval>' ) ;
3434markBootstrapComplete ( ) ;
3535
36- const isWindows = require ( 'internal/util' ) ;
36+ const { isWindows } = require ( 'internal/util' ) ;
3737if ( isWindows ) {
3838 const ci = require ( 'internal/code_integrity' ) ;
3939 if ( ci . isInteractiveModeDisabled ( ) ) {
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ static void IsFileTrustedBySystemCodeIntegrityPolicy(
134134// IsInteractiveModeDisabled
135135// Queries operating system code integrity policy to determine if
136136// the policy is requesting NodeJS to disable interactive mode.
137- static void IsInteractiveModeDisabled (const FunctionCallbackInfo<Value>& args)
137+ static void IsInteractiveModeDisabled (const FunctionCallbackInfo<Value>& args)
138138{
139139 CHECK_EQ (args.Length (), 0 );
140140
@@ -176,7 +176,7 @@ static void IsInteractiveModeDisabled(const FunctionCallbackInfo<Value>& args)
176176 WLDP_SECURE_SETTING_VALUE_TYPE_BOOLEAN;
177177 ULONG valueSize = sizeof (int );
178178 int isInteractiveModeDisabled = 0 ;
179- HRESULT hr =
179+ HRESULT hr =
180180 per_process::WldpQuerySecurityPolicy (&providerName,
181181 &keyName,
182182 &valueName,
You can’t perform that action at this time.
0 commit comments