2022-12-06 02:10:01 +01:00
|
|
|
/*
|
|
|
|
* 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 {
|
|
|
|
|
2023-11-19 09:45:05 +01:00
|
|
|
JS_DEFINE_ALLOCATOR(SuppressedError);
|
|
|
|
|
2022-12-06 02:10:01 +01:00
|
|
|
NonnullGCPtr<SuppressedError> SuppressedError::create(Realm& realm)
|
|
|
|
{
|
2024-11-14 05:50:17 +13:00
|
|
|
return realm.create<SuppressedError>(realm.intrinsics().suppressed_error_prototype());
|
2022-12-06 02:10:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
SuppressedError::SuppressedError(Object& prototype)
|
|
|
|
: Error(prototype)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|