refactor: use v8::String::Empty()
when creating empty strings (#46349)
refactor: use v8::String::Empty() when creating empty strings
This commit is contained in:
parent
bf93427cbb
commit
2fa4fb0da9
3 changed files with 4 additions and 4 deletions
|
@ -70,7 +70,7 @@ struct Converter<UUID> {
|
|||
#if BUILDFLAG(IS_WIN)
|
||||
const GUID GUID_NULL = {};
|
||||
if (val == GUID_NULL) {
|
||||
return StringToV8(isolate, "");
|
||||
return v8::String::Empty(isolate);
|
||||
} else {
|
||||
std::wstring uid = base::win::WStringFromGUID(val);
|
||||
return StringToV8(isolate, base::SysWideToUTF8(uid));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue