Use std::string_view for key type in json::Object (#7062)

This commit is contained in:
Siarhei Fedartsou
2024-11-03 18:23:23 +01:00
committed by GitHub
parent 48e8382785
commit 3614af7f64
7 changed files with 25 additions and 16 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ struct V8Renderer
{
Napi::Value child;
std::visit(V8Renderer(env, child), keyValue.second);
obj.Set(keyValue.first, child);
obj.Set(keyValue.first.data(), child);
}
out = obj;
}