Hmm, proxies can still catch hasOwn via getOwnPropertyDescriptor...
```js
o = new Proxy({}, { getOwnPropertyDescriptor(target, prop) { console.log(target, prop)} })
Object.hasOwn(o, "foo") // triggers the callback
```
But perhaps we have some internal native function to not trigger that. Matt, do you know? 👀
Bug 1976515 Comment 1 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Hmm, proxies can still catch hasOwn via getOwnPropertyDescriptor...
```js
o = new Proxy({}, { getOwnPropertyDescriptor(target, prop) { console.log(target, prop)} })
Object.hasOwn(o, "foo") // triggers the callback
```
But perhaps we have some internal native function to not trigger that. Matt, do you know? 👀
Edit: Maybe `js::NativeLookupOwnProperty`.