/* * Copyright (c) 2023, Tim Flynn * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include #include namespace JS { class ThrowableStringBuilder : public AK::StringBuilder { public: explicit ThrowableStringBuilder(VM&); ThrowCompletionOr append(char); ThrowCompletionOr append(StringView); ThrowCompletionOr append(Utf16View const&); ThrowCompletionOr append_code_point(u32 value); private: VM& m_vm; }; }