AggregateError.cpp 503 B

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