2021-06-11 18:06:20 +01:00
|
|
|
/*
|
2023-04-13 00:47:15 +02:00
|
|
|
* Copyright (c) 2021-2023, 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 {
|
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
GC_DEFINE_ALLOCATOR(AggregateError);
|
2023-11-19 09:45:05 +01:00
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
GC::Ref<AggregateError> AggregateError::create(Realm& realm)
|
2021-06-11 18:06:20 +01:00
|
|
|
{
|
2024-11-14 05:50:17 +13:00
|
|
|
return realm.create<AggregateError>(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
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|