mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:37:34 +00:00
LibJS: Make AggregateError inherit from Error
This is our way of implementing the [[ErrorData]] internal slot, which is being used in Object.prototype.toString().
This commit is contained in:
parent
0e8cbfb7b5
commit
c503a28e19
3 changed files with 7 additions and 4 deletions
|
@ -6,12 +6,13 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibJS/Runtime/Error.h>
|
||||
#include <LibJS/Runtime/Object.h>
|
||||
|
||||
namespace JS {
|
||||
|
||||
class AggregateError : public Object {
|
||||
JS_OBJECT(AggregateError, Object);
|
||||
class AggregateError : public Error {
|
||||
JS_OBJECT(AggregateError, Error);
|
||||
|
||||
public:
|
||||
static AggregateError* create(GlobalObject&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue