Improve readability of CLI trace output#5104
Improve readability of CLI trace output#5104sahanaxzy wants to merge 16 commits intoboa-dev:mainfrom
Conversation
Test262 conformance changes
Tested main commit: |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5104 +/- ##
===========================================
+ Coverage 47.24% 59.26% +12.02%
===========================================
Files 476 580 +104
Lines 46892 63190 +16298
===========================================
+ Hits 22154 37450 +15296
- Misses 24738 25740 +1002 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
One suggestion that I always wanted to do was to display |
|
Thanks for the suggestion... I have updated |
Monti-27
left a comment
There was a problem hiding this comment.
A couple of bugs stood out in the new stack formatter.
…anaxzy/boa into fix-trace-output-readability
core/engine/src/vm/mod.rs
Outdated
|
|
||
| let separator = if let Some(fc) = marker { | ||
| format!(" |{fc}|") | ||
| } else if i + 1 < total && !(force_truncate && i + 1 == groups.len()) { |
There was a problem hiding this comment.
small thing here: this is still using total stack entries for the comma decision, so grouped output can end up with a trailing comma like [ und (x2), ]. i think this should key off rendered groups here instead.
Description
The trace output in the CLI was difficult to read when the stack grew large — table rows would overflow the terminal width, making everything look messy.
solves #5102
Changes