Skip to content

Commit

Permalink
src: use u8path instead of path, u8string
Browse files Browse the repository at this point in the history
  • Loading branch information
yamachu committed Jan 21, 2025
1 parent fb7ef6a commit a5b736c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node_modules.cc
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ void BindingData::GetNearestParentPackageJSON(
}

auto package_json =
TraverseParent(realm, std::filesystem::path(path_value_str));
TraverseParent(realm, std::filesystem::u8path(path_value_str));

if (package_json != nullptr) {
args.GetReturnValue().Set(package_json->Serialize(realm));
Expand All @@ -371,7 +371,7 @@ void BindingData::GetNearestParentPackageJSONType(
}

auto package_json =
TraverseParent(realm, std::filesystem::path(path_value_str));
TraverseParent(realm, std::filesystem::u8path(path_value_str));

if (package_json == nullptr) {
return;
Expand Down

0 comments on commit a5b736c

Please sign in to comment.