Skip to content

Conversation

@marcio-absmartly
Copy link
Contributor

This PR fixes plain object detection when running on edge-runtime.
When running on edge-runtime {}.constructor == Object is false while on node and browsers it's true.
Checking for the prototypes seems to be more robust.

Copy link
Contributor

@calthejuggler calthejuggler left a comment

Choose a reason for hiding this comment

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

LGTM :)

@calthejuggler calthejuggler merged commit 9cca6d6 into main Nov 28, 2024
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