Use std::string_view for key type in json::Object (#7062)
This commit is contained in:
committed by
GitHub
parent
48e8382785
commit
3614af7f64
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user