/* * Copyright (c) 2023, Tim Flynn * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include #include namespace Web::HTML { MediaError::MediaError(JS::Realm& realm, Code code, String message) : Base(realm) , m_code(code) , m_message(move(message)) { } JS::ThrowCompletionOr MediaError::initialize(JS::Realm& realm) { MUST_OR_THROW_OOM(Base::initialize(realm)); set_prototype(&Bindings::ensure_web_prototype(realm, "MediaError")); return {}; } }