LibJS: Add ThrowableStringBuilder::to_string to create a new String

This wraps around the base class method to throw an OOM completion.
This commit is contained in:
Timothy Flynn 2023-01-14 10:30:18 -05:00 committed by Linus Groh
commit 79e81e8a15
Notes: sideshowbarker 2024-07-17 01:41:31 +09:00
2 changed files with 10 additions and 0 deletions

View file

@ -23,6 +23,7 @@ public:
ThrowCompletionOr<void> append(StringView);
ThrowCompletionOr<void> append(Utf16View const&);
ThrowCompletionOr<void> append_code_point(u32 value);
ThrowCompletionOr<String> to_string() const;
private:
VM& m_vm;