AggregateError.cpp 512 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2021, 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. AggregateError* AggregateError::create(GlobalObject& global_object)
  11. {
  12. return global_object.heap().allocate<AggregateError>(global_object, *global_object.aggregate_error_prototype());
  13. }
  14. AggregateError::AggregateError(Object& prototype)
  15. : Error(prototype)
  16. {
  17. }
  18. }