1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:07:36 +00:00

LibJS: Implement AggregateError

This commit is contained in:
Linus Groh 2021-06-11 18:06:20 +01:00
parent 2f03eb8628
commit cbd7437d40
13 changed files with 301 additions and 15 deletions

View file

@ -0,0 +1,23 @@
/*
* Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibJS/Runtime/Object.h>
namespace JS {
class AggregateError : public Object {
JS_OBJECT(Error, Object);
public:
static AggregateError* create(GlobalObject&, String const& message, Vector<Value> const& errors);
explicit AggregateError(Object& prototype);
virtual ~AggregateError() override = default;
};
}