Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@mcollina
Copy link
Member

Summary

  • Fixes a crash when a worker outputs the literal string null to stdout/stderr
  • JSON.parse("null") returns null, and since typeof null === 'object' (JavaScript quirk), the code would enter the object branch and crash trying to access null.level
  • Adds a simple null check to prevent the crash

Test plan

  • Added regression test should handle literal null output from workers without crashing
  • Test passes after fix
  • Lint passes

🤖 Generated with Claude Code

When a worker outputs the literal string "null" to stdout, JSON.parse
returns null. Since typeof null === 'object' in JavaScript, the code
would enter the object branch and crash trying to access null.level.

This adds a null check to prevent the crash.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedjson5@​2.2.310010010082100
Addedsonic-boom@​4.2.010010010083100
Addedpino-abstract-transport@​2.0.010010010084100
Addedwhy-is-node-running@​2.3.010010010084100
Addedreact@​19.2.31001008497100
Addedyaml@​2.8.110010010087100

View full report

Copy link
Member

@ivan-tymoshenko ivan-tymoshenko left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit d0040e9 into main Dec 22, 2025
156 checks passed
@mcollina mcollina deleted the fix/null-log-message-crash branch December 22, 2025 18:10
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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.