AggregateError.cpp 520 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2021-2023, Linus Groh <linusg@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibJS/Runtime/AggregateError.h>
  7. #include <LibJS/Runtime/Error.h>
  8. #include <LibJS/Runtime/GlobalObject.h>
  9. namespace JS {
  10. GC_DEFINE_ALLOCATOR(AggregateError);
  11. GC::Ref<AggregateError> AggregateError::create(Realm& realm)
  12. {
  13. return realm.create<AggregateError>(realm.intrinsics().aggregate_error_prototype());
  14. }
  15. AggregateError::AggregateError(Object& prototype)
  16. : Error(prototype)
  17. {
  18. }
  19. }