Skip to content

Commit

Permalink
not relying on defaults (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-entin committed Oct 21, 2023
1 parent 7719103 commit 824fce1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vanilla.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ const buildProxyFunction = (
return
}
const value = Reflect.get(target, key)
const { enumerable = false } = Reflect.getOwnPropertyDescriptor(
const { enumerable } = Reflect.getOwnPropertyDescriptor(
target,
key
) as PropertyDescriptor
const desc: PropertyDescriptor = {
value,
enumerable,
enumerable: enumerable as boolean,
// This is intentional to avoid copying with proxy-compare.
// It's still non-writable, so it avoids assigning a value.
configurable: true,
Expand Down

0 comments on commit 824fce1

Please sign in to comment.