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

fix: ensure $inspect.trace works correctly with null values #14853

Merged
merged 2 commits into from
Dec 28, 2024

Conversation

trueadm
Copy link
Contributor

@trueadm trueadm commented Dec 28, 2024

Fixes the issue in comment #14846 (comment)

Copy link

changeset-bot bot commented Dec 28, 2024

🦋 Changeset detected

Latest commit: f0aa574

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
svelte Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

Playground

pnpm add https://pkg.pr.new/svelte@14853

Copy link
Member

@paoloricciuti paoloricciuti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's merge this I'll add a test for it in my PR that also fixes some bugs for $inspect.trace

@trueadm trueadm merged commit 32348a5 into main Dec 28, 2024
11 checks passed
@trueadm trueadm deleted the inspect-trace-bug branch December 28, 2024 21:59
@github-actions github-actions bot mentioned this pull request Dec 28, 2024
paoloricciuti added a commit that referenced this pull request Dec 29, 2024
@paoloricciuti
Copy link
Member

Added the test in #14811

paoloricciuti added a commit that referenced this pull request Jan 3, 2025
* fix: correctly highlight sources reassigned inside `trace`

* chore: add missing effect logs

* fix: prevent `null` access on `tracing_expressions` for nested tracing

* chore: add test case for #14853

* fix: types for `$inpect.trace`
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