Skip to content

Conversation

@Flouse
Copy link
Contributor

@Flouse Flouse commented Sep 9, 2025

The commit relies on Object.getOwnPropertyDescriptor to safely inspect if a property is a method or a getter without invoking it.

The commit relies on `Object.getOwnPropertyDescriptor` to safely inspect if a property is a method or a getter without invoking it.
@changeset-bot
Copy link

changeset-bot bot commented Sep 9, 2025

🦋 Changeset detected

Latest commit: b8cdb3c

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

This PR includes changesets to release 2 packages
Name Type
agents Patch
hono-agents 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

continue;
}
// If the method doesn't exist in base prototypes, it's a custom method
if (!baseMethods.has(methodName)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was duplicated check of L859, so I removed it.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Sep 9, 2025

Open in StackBlitz

npm i https://pkg.pr.new/cloudflare/agents@446

commit: b8cdb3c

Copy link
Contributor

@threepointone threepointone left a comment

Choose a reason for hiding this comment

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

looks good, thanks!

@threepointone threepointone merged commit 696d33e into cloudflare:main Sep 9, 2025
3 checks passed
@threepointone threepointone mentioned this pull request Sep 9, 2025
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.

_autoWrapCustomMethods may inadvertently execute getters when checking property type

2 participants