We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b687ea7 commit 06e22f4Copy full SHA for 06e22f4
1 file changed
src/node_code_integrity.cc
@@ -97,21 +97,6 @@ static void IsFileTrustedBySystemCodeIntegrityPolicy(
97
InitWldp(env);
98
}
99
100
- // BufferValue path(env->isolate(), args[0]);
101
- // CHECK_NOT_NULL(*path);
102
-
103
- // HANDLE hFile = CreateFileA(*path,
104
- // GENERIC_READ,
105
- // FILE_SHARE_READ,
106
- // nullptr,
107
- // OPEN_EXISTING,
108
- // FILE_ATTRIBUTE_NORMAL,
109
- // nullptr);
110
111
- // if (hFile == INVALID_HANDLE_VALUE || hFile == nullptr) {
112
- // return args.GetReturnValue().SetFalse();
113
- // }
114
115
HANDLE hFile = uv_get_osfhandle(fd);
116
117
if (hFile == INVALID_HANDLE_VALUE || hFile == nullptr) {
0 commit comments