Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Miniflare 3] Add additional traps to magic proxy stubs #710

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

mrbbot
Copy link
Contributor

@mrbbot mrbbot commented Oct 6, 2023

Hey! 👋 This change adds getOwnPropertyDescriptor, ownKeys and getPrototypeOf traps to magic proxy stubs. The first two allow proxy stubs to be JSON.stringifyed. The last ensures proxies aren't detected as plain objects.

This change adds `getOwnPropertyDescriptor`, `ownKeys` and
`getPrototypeOf` traps to magic proxy stubs. The first two allow
proxy stubs to be `JSON.stringify`ed. The last ensures proxies
aren't detected as plain objects.
@mrbbot mrbbot requested review from dario-piotrowicz and a team October 6, 2023 17:15
@changeset-bot
Copy link

changeset-bot bot commented Oct 6, 2023

⚠️ No Changeset found

Latest commit: b9163fb

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

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

Copy link
Member

@dario-piotrowicz dario-piotrowicz left a comment

Choose a reason for hiding this comment

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

from my non-existent knowledge of the codebase the changes look good to me 🙂

I did manually test this and seems to be working as expected, thanks a bunch @mrbbot 😄 🚀

@mrbbot mrbbot merged commit 6cdb3c7 into tre Oct 9, 2023
8 checks passed
@mrbbot mrbbot deleted the bcoll/tre-extra-proxy-traps branch October 9, 2023 09:35
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.

3 participants