mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 01:22:43 +00:00 
			
		
		
		
	 c503a28e19
			
		
	
	
		c503a28e19
		
	
	
	
	
		
			
			This is our way of implementing the [[ErrorData]] internal slot, which is being used in Object.prototype.toString().
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			448 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			448 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <LibJS/Runtime/Error.h>
 | |
| #include <LibJS/Runtime/Object.h>
 | |
| 
 | |
| namespace JS {
 | |
| 
 | |
| class AggregateError : public Error {
 | |
|     JS_OBJECT(AggregateError, Error);
 | |
| 
 | |
| public:
 | |
|     static AggregateError* create(GlobalObject&);
 | |
| 
 | |
|     explicit AggregateError(Object& prototype);
 | |
|     virtual ~AggregateError() override = default;
 | |
| };
 | |
| 
 | |
| }
 |