Skip to content

Conversation

bartlomieju
Copy link
Member

This is meant to replace LocalInspectorSession that abstract interaction into async Rust.

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 0% with 29 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.73%. Comparing base (0c7f83e) to head (2e3f0db).
⚠️ Report is 334 commits behind head on main.

Files with missing lines Patch % Lines
core/inspector.rs 0.00% 29 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1192      +/-   ##
==========================================
- Coverage   81.43%   79.73%   -1.71%     
==========================================
  Files          97      100       +3     
  Lines       23877    25898    +2021     
==========================================
+ Hits        19445    20649    +1204     
- Misses       4432     5249     +817     

☔ 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.

@bartlomieju bartlomieju changed the title feat: Add LocalSyncInspectorSession refactor: rewrite inspector implementation Sep 15, 2025
bartlomieju added a commit that referenced this pull request Sep 17, 2025
Fixing some of the fall out from
#1193.

Testing in CLI it turned out that there's a double RefCell borrow panic
occuring, when running the REPL - when the exception was raised when evaluating an
expression - and said expression was evaluated as part of dispatching an inspector
message - the `op_dispatch_exception` op was called that tries to mutable borrow
the inspector instance.

This is now avoided by storing `SessionContainer` in the
`LocalInspectorSession`, instead of `JsRuntimeInspector`.

This will be further simplified in follow up PRs like
#1192.
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.

2 participants