Skip to content

## Console: Improve %o / %O Object Formatting#4762

Open
rajat552 wants to merge 1 commit intoboa-dev:mainfrom
rajat552:fix/console-object-formatting
Open

## Console: Improve %o / %O Object Formatting#4762
rajat552 wants to merge 1 commit intoboa-dev:mainfrom
rajat552:fix/console-object-formatting

Conversation

@rajat552
Copy link
Contributor

@rajat552 rajat552 commented Feb 28, 2026

Summary

Updated %o / %O handling in console formatting to use rich object inspection instead of the default %s-equivalent output.


Changes

File: mod.rs:185-190

Replaced:

arg.display().to_string()



Closes #4761 

@rajat552 rajat552 requested a review from a team as a code owner February 28, 2026 18:22
@rajat552
Copy link
Contributor Author

@jedel1043 %o / %O now use internals(true) for detailed object inspection. Tests are green. Let me know if any adjustments are needed.

@jedel1043 jedel1043 added enhancement New feature or request runtime Issues and PRs related to Boa's runtime features labels Feb 28, 2026
@jedel1043 jedel1043 added this to the v1.0.0 milestone Feb 28, 2026
@github-actions
Copy link

Test262 conformance changes

Test result main count PR count difference
Total 52,862 52,862 0
Passed 49,505 49,504 -1
Ignored 2,261 2,262 +1
Failed 1,096 1,096 0
Panics 0 0 0
Conformance 93.65% 93.65% -0.00%

@codecov
Copy link

codecov bot commented Feb 28, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 57.10%. Comparing base (6ddc2b4) to head (e1aa354).
⚠️ Report is 706 commits behind head on main.

Files with missing lines Patch % Lines
core/runtime/src/console/mod.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4762      +/-   ##
==========================================
+ Coverage   47.24%   57.10%   +9.85%     
==========================================
  Files         476      553      +77     
  Lines       46892    60603   +13711     
==========================================
+ Hits        22154    34606   +12452     
- Misses      24738    25997    +1259     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request runtime Issues and PRs related to Boa's runtime features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants