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

fix(client): Correct result for hasOwn/hasOwnProperty on proxies #18519

Merged
merged 1 commit into from
Mar 27, 2023

Conversation

SevInf
Copy link
Contributor

@SevInf SevInf commented Mar 27, 2023

Problem is in compositeProxy implamentation: we always returned a
descriptor from getOwnPropertyDescriptor, which caused hasOwnProperty
to always return true regardless of propery existence.

Fix #18462

Problem is in compositeProxy implamentation: we always returned a
descriptor from `getOwnPropertyDescriptor`, which caused `hasOwnProperty`
to always return `true` regardless of propery existence.

Fix #18462
@SevInf SevInf requested review from a team and millsp and removed request for a team March 27, 2023 14:56
@codspeed-hq
Copy link

codspeed-hq bot commented Mar 27, 2023

CodSpeed Performance Report

Merging #18519 fix/proxy-own-prop (2e5f684) will improve performances by 18.3%.

Summary

🔥 1 improvements
❌ 0 regressions
✅ 1 untouched benchmarks

🆕 0 new benchmarks
⁉️ 0 dropped benchmarks

Benchmarks breakdown

Benchmark main fix/proxy-own-prop Change
🔥 typescript compilation ~50 Models 20 ms 12.7 ms 36.45%

@SevInf SevInf added this to the 4.12.0 milestone Mar 27, 2023
@SevInf SevInf merged commit ba6ea8e into main Mar 27, 2023
@SevInf SevInf deleted the fix/proxy-own-prop branch March 27, 2023 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants