Skip to content

Conversation

@pi0
Copy link
Member

@pi0 pi0 commented Apr 8, 2025

resolve an ecosystem regrerssion introduced from #286

Using a custom class with null prototype adds performance benefits for v8 but also breaks libraries like devalue that explicitly check Object.getPrototypeOf() === null) (fix: sveltejs/devalue#95)

This PR uses a slower Object.create(null) to improve ecosystem compatibility for the time being.

@pi0 pi0 merged commit 31ea74c into main Apr 8, 2025
2 checks passed
@pi0 pi0 deleted the fix/query-null-obj branch April 8, 2025 08:11
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