2023-04-22 15:39:20 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <LibJS/Runtime/Realm.h>
|
|
|
|
|
#include <LibWeb/Bindings/Intrinsics.h>
|
2026-04-18 05:54:06 -03:00
|
|
|
#include <LibWeb/Bindings/MediaError.h>
|
2023-04-22 15:39:20 -03:00
|
|
|
#include <LibWeb/HTML/MediaError.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::HTML {
|
|
|
|
|
|
2024-11-14 12:01:23 -03:00
|
|
|
GC_DEFINE_ALLOCATOR(MediaError);
|
2023-11-19 15:47:52 -03:00
|
|
|
|
2023-04-22 15:39:20 -03:00
|
|
|
MediaError::MediaError(JS::Realm& realm, Code code, String message)
|
|
|
|
|
: Base(realm)
|
|
|
|
|
, m_code(code)
|
|
|
|
|
, m_message(move(message))
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-07 03:41:28 -03:00
|
|
|
void MediaError::initialize(JS::Realm& realm)
|
2023-04-22 15:39:20 -03:00
|
|
|
{
|
2024-03-16 09:13:08 -03:00
|
|
|
WEB_SET_PROTOTYPE_FOR_INTERFACE(MediaError);
|
2025-04-20 11:22:57 -03:00
|
|
|
Base::initialize(realm);
|
2023-04-22 15:39:20 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|