AggregateError.cpp 541 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. JS_DEFINE_ALLOCATOR(AggregateError);
  11. NonnullGCPtr<AggregateError> AggregateError::create(Realm& realm)
  12. {
  13. return realm.heap().allocate<AggregateError>(realm, realm.intrinsics().aggregate_error_prototype());
  14. }
  15. AggregateError::AggregateError(Object& prototype)
  16. : Error(prototype)
  17. {
  18. }
  19. }