Coverage Report

Created: 2026-09-14 07:15

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/serenity/Userland/Libraries/LibWeb/HTML/MediaError.cpp
Line
Count
Source
1
/*
2
 * Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#include <LibJS/Runtime/Realm.h>
8
#include <LibWeb/Bindings/Intrinsics.h>
9
#include <LibWeb/Bindings/MediaErrorPrototype.h>
10
#include <LibWeb/HTML/MediaError.h>
11
12
namespace Web::HTML {
13
14
JS_DEFINE_ALLOCATOR(MediaError);
15
16
MediaError::MediaError(JS::Realm& realm, Code code, String message)
17
0
    : Base(realm)
18
0
    , m_code(code)
19
0
    , m_message(move(message))
20
0
{
21
0
}
22
23
void MediaError::initialize(JS::Realm& realm)
24
0
{
25
0
    Base::initialize(realm);
26
0
    WEB_SET_PROTOTYPE_FOR_INTERFACE(MediaError);
27
0
}
28
29
}