2022-11-22 04:20:51 +00:00
|
|
|
/*
|
2024-10-04 11:19:50 +00:00
|
|
|
* Copyright (c) 2020-2021, Andreas Kling <andreas@ladybird.org>
|
2022-11-22 04:20:51 +00:00
|
|
|
* 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 00:00:18 +00:00
|
|
|
Stream& stream;
|
2022-11-22 04:20:51 +00:00
|
|
|
bool strip_ansi { false };
|
|
|
|
};
|
|
|
|
|
|
|
|
ErrorOr<void> print(JS::Value value, PrintContext&);
|
|
|
|
}
|