mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
LibJS: Make PrimitiveString::utf8_string() infallible
Work towards #20449.
This commit is contained in:
parent
7849950383
commit
c084269e5f
29 changed files with 79 additions and 93 deletions
|
@ -38,8 +38,8 @@ public:
|
|||
|
||||
bool is_empty() const;
|
||||
|
||||
ThrowCompletionOr<String> utf8_string() const;
|
||||
ThrowCompletionOr<StringView> utf8_string_view() const;
|
||||
[[nodiscard]] String utf8_string() const;
|
||||
[[nodiscard]] StringView utf8_string_view() const;
|
||||
bool has_utf8_string() const { return m_utf8_string.has_value(); }
|
||||
|
||||
ThrowCompletionOr<DeprecatedString> deprecated_string() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue