Skip to content

Comments

fix: fix objects with bogus prototypes#131

Merged
nolanlawson merged 2 commits intomasterfrom
fix-bogus-prototypes
Aug 12, 2025
Merged

fix: fix objects with bogus prototypes#131
nolanlawson merged 2 commits intomasterfrom
fix-bogus-prototypes

Conversation

@nolanlawson
Copy link
Owner

Fix #130

This seems likely to be thrown by this line:

const prot = ctor.prototype

If ctor is null then we would throw. We should also check for oddballs like a get constructor() that throws.

@nolanlawson nolanlawson merged commit 930629e into master Aug 12, 2025
3 checks passed
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.

Error Cannot read properties of null (reading 'prototype')

1 participant