Skip to content

Conversation

Ocean-OS
Copy link
Member

This shrinks the output of uneval when using null-prototyped objects. If an empty object is used, the size of uneval decreases by 3 characters per object, and if the object has properties, the size decreases by 20 characters per object:

-Object.create(null);
+{__proto__:null}
-Object.assign(Object.create(null),{thing:true});
+{thing:true,__proto__:null}

Copy link

changeset-bot bot commented Sep 30, 2025

🦋 Changeset detected

Latest commit: b26dc5a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
devalue Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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