Re: [heycam/webidl] Named properties object: enumerate supported properties in [[OwnPropertyKeys]] (#964)

@annevk `for/in` indeed calls [`WindowProxy`'s `[[OwnPropertyKeys]]`](https://html.spec.whatwg.org/#windowproxy-ownpropertykeys) first, but then [goes up the prototype chain](https://tc39.es/ecma262/#sec-for-in-iterator-objects) for same-origin windows.

WebKit, and I believe other runtimes as well, accept additional parameter when implementing `[[OwnPropertyKeys]]` so non-enumerable property names (for `Object.keys` and `for/in`) can be rejected without calling `[[GetOwnProperty]]`. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/964#issuecomment-796629477

Received on Thursday, 11 March 2021 10:20:20 UTC