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
|
@ -164,7 +164,7 @@ struct Converter<JumpListItem::Type> {
|
|||
if (item_val == val)
|
||||
return gin::ConvertToV8(isolate, name);
|
||||
|
||||
return gin::ConvertToV8(isolate, "");
|
||||
return v8::String::Empty(isolate);
|
||||
}
|
||||
|
||||
private:
|
||||
|
@ -255,7 +255,7 @@ struct Converter<JumpListCategory::Type> {
|
|||
if (type_val == val)
|
||||
return gin::ConvertToV8(isolate, name);
|
||||
|
||||
return gin::ConvertToV8(isolate, "");
|
||||
return v8::String::Empty(isolate);
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue