Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Improve debug output of JsNativeError and Realm #2894

Closed
wants to merge 1 commit into from

Conversation

jedel1043
Copy link
Member

It was reported that the dbg! output of native errors was too long. This PR skips printing the Realm of a JsNativeError. It also improves the dbg! output of Realm by skipping printing Inner and only printing the inner fields of Inner.

@jedel1043 jedel1043 added enhancement New feature or request API labels May 3, 2023
@jedel1043 jedel1043 added this to the v0.17.0 milestone May 3, 2023
@github-actions
Copy link

github-actions bot commented May 3, 2023

Test262 conformance changes

Test result main count PR count difference
Total 94,601 94,601 0
Passed 73,228 73,228 0
Ignored 17,540 17,540 0
Failed 3,833 3,833 0
Panics 0 0 0
Conformance 77.41% 77.41% 0.00%

@codecov
Copy link

codecov bot commented May 3, 2023

Codecov Report

Merging #2894 (cd123f7) into main (0636022) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #2894      +/-   ##
==========================================
- Coverage   51.23%   51.23%   -0.01%     
==========================================
  Files         427      427              
  Lines       42520    42557      +37     
==========================================
+ Hits        21787    21805      +18     
- Misses      20733    20752      +19     
Impacted Files Coverage Δ
boa_engine/src/error.rs 34.92% <0.00%> (-0.95%) ⬇️
boa_engine/src/realm.rs 80.64% <0.00%> (-19.36%) ⬇️

... and 7 files with indirect coverage changes

@nekevss
Copy link
Member

nekevss commented May 3, 2023

bors r+

bors bot pushed a commit that referenced this pull request May 3, 2023
It was reported that the `dbg!` output of native errors was too long. This PR skips printing the `Realm` of a `JsNativeError`. It also improves the `dbg!` output of `Realm` by skipping printing `Inner` and only printing the inner fields of `Inner`.
@bors
Copy link

bors bot commented May 3, 2023

Pull request successfully merged into main.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title Improve debug output of JsNativeError and Realm [Merged by Bors] - Improve debug output of JsNativeError and Realm May 3, 2023
@bors bors bot closed this May 3, 2023
@bors bors bot deleted the fix-error-debug branch May 3, 2023 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants