Print.h 481 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (c) 2020-2021, Andreas Kling <kling@serenityos.org>
  3. * Copyright (c) 2020-2022, Linus Groh <linusg@serenityos.org>
  4. * Copyright (c) 2022, Ali Mohammad Pur <mpfard@serenityos.org>
  5. *
  6. * SPDX-License-Identifier: BSD-2-Clause
  7. */
  8. #pragma once
  9. #include <AK/HashTable.h>
  10. #include <LibJS/Runtime/Value.h>
  11. namespace JS {
  12. struct PrintContext {
  13. JS::VM& vm;
  14. Stream& stream;
  15. bool strip_ansi { false };
  16. };
  17. ErrorOr<void> print(JS::Value value, PrintContext&);
  18. }