mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:17:35 +00:00
LibWeb+LibJS: Format Console arguments with JS::Print
Instead of just calling JS::Value::to_string_without_side_effects() when printing values to the console, have all the console clients use the same JS::Print that the REPL does to print values. This method leaves some things to be desired as far as OOM hardening goes, however. We should be able to create a String in a way that doesn't OOM on failure so hard.
This commit is contained in:
parent
0ea697ace5
commit
f40094d014
6 changed files with 25 additions and 4 deletions
|
@ -116,6 +116,8 @@ public:
|
|||
virtual void clear() = 0;
|
||||
virtual void end_group() = 0;
|
||||
|
||||
ThrowCompletionOr<String> generically_format_values(MarkedVector<Value> const&);
|
||||
|
||||
protected:
|
||||
virtual ~ConsoleClient() = default;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue