Skip to content

Commit befbaae

Browse files
committed
properly load isWindows
1 parent 712bc17 commit befbaae

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/internal/main/eval_string.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ prepareMainThreadExecution();
3333
addBuiltinLibsToObject(globalThis, '<eval>');
3434
markBootstrapComplete();
3535

36-
const isWindows = require('internal/util');
36+
const { isWindows } = require('internal/util');
3737
if (isWindows) {
3838
const ci = require('internal/code_integrity');
3939
if (ci.isInteractiveModeDisabled()) {

src/node_code_integrity.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)