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:
trop[bot] 2025-03-31 08:56:53 -05:00 committed by GitHub
parent 65f9f08187
commit ff0156e67b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -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: