summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/SuppressedError.cpp
blob: b067f5b985cd963edff4556839d5f396a4e6e945 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2022, David Tuin <davidot@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <LibJS/Runtime/Error.h>
#include <LibJS/Runtime/GlobalObject.h>
#include <LibJS/Runtime/SuppressedError.h>

namespace JS {

NonnullGCPtr<SuppressedError> SuppressedError::create(Realm& realm)
{
    return *realm.heap().allocate<SuppressedError>(realm, *realm.intrinsics().suppressed_error_prototype());
}

SuppressedError::SuppressedError(Object& prototype)
    : Error(prototype)
{
}

}