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

Merged
Merging
fix/proxy-own-prop
into
main
+57%
IMPROVEMENTS
1
REGRESSIONS
0
UNTOUCHED
1
NEW
0
DROPPED
0

Benchmarks

client generation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::client generation ~50 Models
0%
47.3 ms
47.2 ms
typescript compilation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::typescript compilation ~50 Models
+57%
20 ms
12.7 ms

Commits

Click on a commit to change the comparison range
chore(client): Unskip some of the json protocol validation tests (#18511)
base
5b3ec51
8 months ago by SevInf
+57%
fix(client): Correct result for hasOwn/hasOwnProperty on proxies 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
2e5f684
8 months ago by SevInf
ResourcesHomePricingDocsBlogGitHub
Copyright © 2023 CodSpeed Technology SAS. All rights reserved.