Skip to content

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

Merged
cthackers merged 2 commits into
cthackers:masterfrom
matt-fidd:webpack-crash
Jun 29, 2026
Merged

cthackers merged 2 commits into
cthackers:masterfrom
matt-fidd:webpack-crash

Conversation

@matt-fidd

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

Copy link
Copy Markdown
Contributor

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 🙂

@MatissJanis

Copy link
Copy Markdown

cc @cthackers would be amazing to get this merged & released.

@cthackers
cthackers merged commit b091814 into cthackers:master Jun 29, 2026
@matt-fidd matt-fidd mentioned this pull request Jun 29, 2026
3 tasks done
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.

4 participants