Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceres6 committed Nov 4, 2023
1 parent 52a0ae2 commit 8e26b70
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ std::string NormalizeString(const std::string path,
int dots = 0;
char code;
const auto pathLen = path.length();
for (uint i = 0; i <= pathLen; ++i) {
for (uint8_t i = 0; i <= pathLen; ++i) {
if (i < pathLen) {
code = path[i];
} else if (IsPathSeparator(path[i])) {
Expand Down
8 changes: 8 additions & 0 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,14 @@ class RAIIIsolate {
v8::Isolate* isolate_;
};

class Environment;

#ifdef _WIN32
bool IsWindowsDeviceRoot(const char c);
#endif

bool IsPathSeparator(const char c);

std::string NormalizeString(const std::string path,
bool allowAboveRoot,
const std::string separator);
Expand Down

0 comments on commit 8e26b70

Please sign in to comment.