refactor: use v8::String::Empty()
when creating empty strings (#46372)
refactor: use v8::String::Empty() when creating empty strings Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
65f9f08187
commit
ff0156e67b
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