2021-06-11 18:06:20 +01:00
|
|
|
/*
|
2022-08-27 00:54:55 +01:00
|
|
|
* Copyright (c) 2021-2022, Linus Groh <linusg@serenityos.org>
|
2021-06-11 18:06:20 +01:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <LibJS/Runtime/AggregateError.h>
|
2021-06-23 13:59:17 +01:00
|
|
|
#include <LibJS/Runtime/Error.h>
|
2021-06-11 18:06:20 +01:00
|
|
|
#include <LibJS/Runtime/GlobalObject.h>
|
|
|
|
|
|
|
|
namespace JS {
|
|
|
|
|
2022-12-13 20:49:49 +00:00
|
|
|
NonnullGCPtr<AggregateError> AggregateError::create(Realm& realm)
|
2021-06-11 18:06:20 +01:00
|
|
|
{
|
2022-12-14 17:40:33 +00:00
|
|
|
return realm.heap().allocate<AggregateError>(realm, *realm.intrinsics().aggregate_error_prototype());
|
2021-06-11 18:06:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
AggregateError::AggregateError(Object& prototype)
|
2021-06-23 13:59:17 +01:00
|
|
|
: Error(prototype)
|
2021-06-11 18:06:20 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|