Coverage Report

Created: 2025-11-02 07:25

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/serenity/Userland/Libraries/LibWeb/WebIDL/DOMException.cpp
Line
Count
Source
1
/*
2
 * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#include <LibWeb/Bindings/DOMExceptionPrototype.h>
8
#include <LibWeb/Bindings/Intrinsics.h>
9
#include <LibWeb/WebIDL/DOMException.h>
10
11
namespace Web::WebIDL {
12
13
JS_DEFINE_ALLOCATOR(DOMException);
14
15
JS::NonnullGCPtr<DOMException> DOMException::create(JS::Realm& realm, FlyString name, String message)
16
0
{
17
0
    return realm.heap().allocate<DOMException>(realm, realm, move(name), move(message));
18
0
}
19
20
JS::NonnullGCPtr<DOMException> DOMException::construct_impl(JS::Realm& realm, String message, FlyString name)
21
0
{
22
0
    return realm.heap().allocate<DOMException>(realm, realm, move(name), move(message));
23
0
}
24
25
DOMException::DOMException(JS::Realm& realm, FlyString name, String message)
26
0
    : PlatformObject(realm)
27
0
    , m_name(move(name))
28
0
    , m_message(move(message))
29
0
{
30
0
}
31
32
0
DOMException::~DOMException() = default;
33
34
void DOMException::initialize(JS::Realm& realm)
35
0
{
36
0
    Base::initialize(realm);
37
0
    WEB_SET_PROTOTYPE_FOR_INTERFACE(DOMException);
38
0
}
39
40
}