blob: 3048d5262e00ed0fda61be2a9b0c238561b9e6c3 (
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) 2021, Linus Groh <linusg@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibJS/Runtime/AggregateError.h>
#include <LibJS/Runtime/Error.h>
#include <LibJS/Runtime/GlobalObject.h>
namespace JS {
AggregateError* AggregateError::create(GlobalObject& global_object)
{
return global_object.heap().allocate<AggregateError>(global_object, *global_object.aggregate_error_prototype());
}
AggregateError::AggregateError(Object& prototype)
: Error(prototype)
{
}
}
|