Skip to content

prevent crashes when process.versions is an empty object #551

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matt-fidd
Copy link

@matt-fidd matt-fidd commented Feb 20, 2025

I'm getting crashes if process.versions is set to {} as it accesses .node with no further checks, and calls .split() on undefined. Looks like the original logic assumed that if process.versions was set, then .node would be too.

@5saviahv sorry for the tag, just wanted to make sure you'd see this as the last commit was a little while ago 🙂

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.

1 participant