2022-12-05 22:10:01 -03: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 {
|
|
|
|
|
|
2024-11-14 12:01:23 -03:00
|
|
|
GC_DEFINE_ALLOCATOR(SuppressedError);
|
2023-11-19 05:45:05 -03:00
|
|
|
|
2024-11-14 12:01:23 -03:00
|
|
|
GC::Ref<SuppressedError> SuppressedError::create(Realm& realm)
|
2022-12-05 22:10:01 -03:00
|
|
|
{
|
2024-11-13 13:50:17 -03:00
|
|
|
return realm.create<SuppressedError>(realm.intrinsics().suppressed_error_prototype());
|
2022-12-05 22:10:01 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SuppressedError::SuppressedError(Object& prototype)
|
|
|
|
|
: Error(prototype)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|