Skip to content

feat(console): implement console.table() and add tests#4890

Closed
0xShubhamSolanki wants to merge 1 commit intoboa-dev:mainfrom
0xShubhamSolanki:console-table
Closed

feat(console): implement console.table() and add tests#4890
0xShubhamSolanki wants to merge 1 commit intoboa-dev:mainfrom
0xShubhamSolanki:console-table

Conversation

@0xShubhamSolanki
Copy link
Contributor

This PR adds an implementation of console.table() fixes/closes #307

Changes:

  • Added console.table() method in core/runtime/src/console/mod.rs
  • Iterates over object's own property keys and prints them in a simple table format
  • Logs non-object values directly
  • Registered the method in the console API

Tests:

  • Added tests in core/runtime/src/console/tests.rs
  • Covers:
    • basic object input
    • array input
    • non-object input
    • nested object edge case

All existing tests pass (cargo test).

@0xShubhamSolanki 0xShubhamSolanki requested a review from a team as a code owner March 5, 2026 23:07
@0xShubhamSolanki 0xShubhamSolanki mentioned this pull request Mar 5, 2026
23 tasks
@jedel1043
Copy link
Member

duplicate of #4690

@jedel1043 jedel1043 closed this Mar 5, 2026
@github-actions
Copy link

github-actions bot commented Mar 5, 2026

Test262 conformance changes

Test result main count PR count difference
Total 52,963 52,963 0
Passed 49,666 49,666 0
Ignored 2,284 2,284 0
Failed 1,013 1,013 0
Panics 0 0 0
Conformance 93.77% 93.77% 0.00%

Tested main commit: 5cbf23323e1be945022cd1e6332cbacc22e9a2c8
Tested PR commit: be70d9283df01a2a9f550e58421364a8924bf8b9
Compare commits: 5cbf233...be70d92

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement console methods

2 participants