/src/serenity/Userland/Libraries/LibJS/Runtime/SuppressedError.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Copyright (c) 2022, David Tuin <davidot@serenityos.org> |
3 | | * |
4 | | * SPDX-License-Identifier: BSD-2-Clause |
5 | | */ |
6 | | |
7 | | #include <LibJS/Runtime/Error.h> |
8 | | #include <LibJS/Runtime/GlobalObject.h> |
9 | | #include <LibJS/Runtime/SuppressedError.h> |
10 | | |
11 | | namespace JS { |
12 | | |
13 | | JS_DEFINE_ALLOCATOR(SuppressedError); |
14 | | |
15 | | NonnullGCPtr<SuppressedError> SuppressedError::create(Realm& realm) |
16 | 0 | { |
17 | 0 | return realm.heap().allocate<SuppressedError>(realm, realm.intrinsics().suppressed_error_prototype()); |
18 | 0 | } |
19 | | |
20 | | SuppressedError::SuppressedError(Object& prototype) |
21 | 0 | : Error(prototype) |
22 | 0 | { |
23 | 0 | } |
24 | | |
25 | | } |