| 
									
										
										
										
											2022-11-22 07:50:51 +03:30
										 |  |  | /*
 | 
					
						
							| 
									
										
										
										
											2024-10-04 13:19:50 +02:00
										 |  |  |  * Copyright (c) 2020-2021, Andreas Kling <andreas@ladybird.org> | 
					
						
							| 
									
										
										
										
											2022-11-22 07:50:51 +03:30
										 |  |  |  * Copyright (c) 2020-2022, Linus Groh <linusg@serenityos.org> | 
					
						
							|  |  |  |  * Copyright (c) 2022, Ali Mohammad Pur <mpfard@serenityos.org> | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * SPDX-License-Identifier: BSD-2-Clause | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <AK/HashTable.h>
 | 
					
						
							|  |  |  | #include <LibJS/Runtime/Value.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace JS { | 
					
						
							|  |  |  | struct PrintContext { | 
					
						
							|  |  |  |     JS::VM& vm; | 
					
						
							| 
									
										
										
										
											2023-02-10 01:00:18 +01:00
										 |  |  |     Stream& stream; | 
					
						
							| 
									
										
										
										
											2022-11-22 07:50:51 +03:30
										 |  |  |     bool strip_ansi { false }; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ErrorOr<void> print(JS::Value value, PrintContext&); | 
					
						
							|  |  |  | } |